From 351990092809fa5db76f114d464ddb235ebaba82 Mon Sep 17 00:00:00 2001 From: Darshan Date: Wed, 21 May 2025 15:15:29 +0530 Subject: [PATCH] add: batch deletion on function executions. --- .../executions/table.svelte | 85 +++++++++++++++++-- 1 file changed, 80 insertions(+), 5 deletions(-) diff --git a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/executions/table.svelte b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/executions/table.svelte index 91efa2654..bd6e8fdca 100644 --- a/src/routes/(console)/project-[region]-[project]/functions/function-[function]/executions/table.svelte +++ b/src/routes/(console)/project-[region]-[project]/functions/function-[function]/executions/table.svelte @@ -1,32 +1,78 @@ - + {#each columns as { id, title }} {title} {/each} - {#each logs.executions as log} + {#each logs.executions as log (log.$id)} { e.stopPropagation(); open = true; @@ -84,3 +130,32 @@ + +{#if selectedRows.length > 0} + + + + + {selectedRows.length > 1 ? 'executions' : 'execution'} + selected + + + + + + + +{/if} + + +

+ Are you sure you want to delete {selectedRows.length} + {selectedRows.length > 1 ? 'executions' : 'execution'}? +

+ +

This action is irreversible.

+