From ac6c6dcfc73d1d69f59911e0ee7cf624b9b8785f Mon Sep 17 00:00:00 2001 From: Arman Date: Tue, 13 Aug 2024 15:54:14 +0200 Subject: [PATCH] fix: hide delete deployment when buildin or processiong --- .../function-[function]/table.svelte | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 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 f4a7eb73d..db6fd83cf 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/table.svelte @@ -168,15 +168,17 @@ Cancel {/if} - { - selectedDeployment = deployment; - showDropdown = []; - showDelete = true; - }}> - Delete - + {#if deployment.status !== 'building' && deployment.status !== 'processing'} + { + selectedDeployment = deployment; + showDropdown = []; + showDelete = true; + }}> + Delete + + {/if}