update: improve deletion message.

This commit is contained in:
ItzNotABug
2024-04-14 16:02:37 +05:30
parent e8f146e148
commit f34fc26b37
@@ -75,9 +75,16 @@
</p>
{:else}
<p data-private>
Are you sure you want to delete <b>{$organization.name}</b>? All projects ({$projects.total})
and data associated with this organization will be deleted. This action is irreversible.
Are you sure you want to delete <b>{$organization.name}</b>?
{#if $projects.total > 0}
All projects ({$projects.total}) and data associated with this organization will be
deleted.
{:else}
There are <b>no projects</b> associated with this organization.
{/if}
</p>
<p><b>This action is irreversible.</b></p>
{/if}
<svelte:fragment slot="footer">
<Button text on:click={() => (showDelete = false)}>Cancel</Button>