From f34fc26b374585f68a735dc11d356efeae267bc4 Mon Sep 17 00:00:00 2001 From: ItzNotABug Date: Sun, 14 Apr 2024 16:02:37 +0530 Subject: [PATCH] update: improve deletion message. --- .../settings/deleteOrganizationModal.svelte | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte b/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte index 47c9c7660..7cc7c3537 100644 --- a/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte +++ b/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte @@ -75,9 +75,16 @@

{:else}

- Are you sure you want to delete {$organization.name}? All projects ({$projects.total}) - and data associated with this organization will be deleted. This action is irreversible. + Are you sure you want to delete {$organization.name}? + {#if $projects.total > 0} + All projects ({$projects.total}) and data associated with this organization will be + deleted. + {:else} + There are no projects associated with this organization. + {/if}

+ +

This action is irreversible.

{/if}