From 327be21670762d4f4678a1a8ff6056542eee1f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Tue, 20 Aug 2024 13:20:24 +0200 Subject: [PATCH 1/2] Allow depoyment download in any moment --- .../functions/function-[function]/table.svelte | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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..790a47111 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte @@ -148,14 +148,12 @@ href={`${base}/project-${$page.params.project}/functions/function-${$page.params.function}/deployment-${deployment.$id}`}> Logs - {#if deployment.status === 'ready'} - (showDropdown[index] = false)}> - Download - - {/if} + (showDropdown[index] = false)}> + Download + {#if deployment.status === 'processing' || deployment.status === 'building'} Date: Tue, 20 Aug 2024 13:30:20 +0200 Subject: [PATCH 2/2] fixes from QA --- .../deployment-[deployment]/+page.svelte | 24 +++++++++---------- .../function-[function]/table.svelte | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) 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 790a47111..9a3906daf 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte @@ -154,7 +154,7 @@ on:click={() => (showDropdown[index] = false)}> Download - {#if deployment.status === 'processing' || deployment.status === 'building'} + {#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'} {