diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte index 1d7bf3021..73a3e73df 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/deployment-[deployment]/+page.svelte @@ -60,26 +60,26 @@
- {#if $deployment.status === 'processing'} + {#if $deployment.status === 'processing' || $deployment.status === 'building' || $deployment.status === 'waiting'} {/if} - {#if $deployment.status === 'ready'} - + {#if $deployment.size > 0} + + {/if} + + {#if $func.deployment !== $deployment.$id && $deployment.status === 'ready'} + {/if} -
diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte index db6fd83cf..9a3906daf 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte @@ -148,15 +148,13 @@ href={`${base}/project-${$page.params.project}/functions/function-${$page.params.function}/deployment-${deployment.$id}`}> Logs - {#if deployment.status === 'ready'} - (showDropdown[index] = false)}> - Download - - {/if} - {#if deployment.status === 'processing' || deployment.status === 'building'} + (showDropdown[index] = false)}> + Download + + {#if deployment.status === 'processing' || deployment.status === 'building' || deployment.status === 'waiting'} {/if} - {#if deployment.status !== 'building' && deployment.status !== 'processing'} + {#if deployment.status !== 'building' && deployment.status !== 'processing' && deployment.status !== 'waiting'} {