- The organization {$organization.name} will be flagged for deletion.
-
+
+
+ {#if upcomingInvoice}
+
+
+ You have a pending {formatCurrency(upcomingInvoice.grossAmount)} invoice for your
+ {tierToPlan(upcomingInvoice.plan).name} plan
+
+
+ By proceeding, your invoice will be processed within the hour. Upon successful
+ payment, your organization will be deleted.
+
+
+ {/if}
- All existing projects will be paused and the organization will be deleted once your
- upcoming invoice is processed on {toLocaleDate($organization.billingNextInvoiceDate)}.
-
- {: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.
+ {#if $projects.total > 0}
+ The following projects and all data associated with {$organization.name} will
+ be permanently deleted. This action is irreversible.
+ {:else}
+ {$organization.name} will be permanently deleted. This action is irreversible.
+ {/if}
+
+
From 82177dea5f5a96fff209cad97be70e675e7be47e Mon Sep 17 00:00:00 2001
From: ItzNotABug
Date: Tue, 20 Aug 2024 15:08:43 +0530
Subject: [PATCH 03/10] ran: `npm run format`.
---
.../settings/deleteOrganizationModal.svelte | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte b/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte
index 1618f8481f..71b6268f73 100644
--- a/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte
+++ b/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte
@@ -114,7 +114,8 @@
The following projects and all data associated with {$organization.name} will
be permanently deleted. This action is irreversible.
{:else}
- {$organization.name} will be permanently deleted. This action is irreversible.
+ {$organization.name} will be permanently deleted.
+ This action is irreversible.
{/if}
From 1d74b0cd16984be6f749e8bdac60e2889ddbb5a4 Mon Sep 17 00:00:00 2001
From: Darshan
Date: Tue, 20 Aug 2024 16:51:54 +0530
Subject: [PATCH 04/10] address comment.
Co-authored-by: Carla
---
.../settings/deleteOrganizationModal.svelte | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte b/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte
index 71b6268f73..0c7373a446 100644
--- a/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte
+++ b/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte
@@ -114,7 +114,7 @@
The following projects and all data associated with {$organization.name} will
be permanently deleted. This action is irreversible.
{:else}
- {$organization.name} will be permanently deleted.
+ All data associated with {$organization.name} will be permanently deleted.
This action is irreversible.
{/if}
From 449d601e40d5479ed11d880970c40e3d8bcb65e5 Mon Sep 17 00:00:00 2001
From: ItzNotABug
Date: Tue, 20 Aug 2024 20:44:18 +0530
Subject: [PATCH 05/10] update: horizontal scrolling, manage views per device
type.
---
.../settings/deleteOrganizationModal.svelte | 48 ++++++++++++++++---
1 file changed, 41 insertions(+), 7 deletions(-)
diff --git a/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte b/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte
index 0c7373a446..d27b310cd3 100644
--- a/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte
+++ b/src/routes/console/organization-[organization]/settings/deleteOrganizationModal.svelte
@@ -30,6 +30,10 @@
let selectedTab = 'projects';
let organizationName: string = null;
+ /* enable overflow-x */
+ const columnWidth = 120;
+ const columnWidthSmall = columnWidth / 4;
+
async function deleteOrg() {
try {
if (isCloud) {
@@ -60,8 +64,8 @@
}
const tabs = [
- { name: 'projects', label: 'Projects', total: $projects.total },
- { name: 'members', label: 'Team members', total: $members.total }
+ { name: 'projects', label: { desktop: 'Projects', mobile: 'Projects' }, total: $projects.total },
+ { name: 'members', label: { desktop: 'Total Members', mobile: 'Members' }, total: $members.total }
];
$: tabData =
@@ -120,7 +124,7 @@
{#if $projects.total > 0}
-