diff --git a/src/lib/elements/forms/button.svelte b/src/lib/elements/forms/button.svelte index af466aa46..48e986b8d 100644 --- a/src/lib/elements/forms/button.svelte +++ b/src/lib/elements/forms/button.svelte @@ -15,6 +15,7 @@ export let external = false; export let href: string = null; export let fullWidth = false; + export let fullWidthMobile = false; export let ariaLabel: string = null; export let noMargin = false; export let event: string = null; @@ -47,6 +48,7 @@ text && 'is-text', danger && 'is-danger', fullWidth && 'is-full-width', + fullWidthMobile && 'is-full-width-mobile', noMargin && 'u-padding-inline-0', classes ] diff --git a/src/lib/layout/headerAlert.svelte b/src/lib/layout/headerAlert.svelte new file mode 100644 index 000000000..df1887aee --- /dev/null +++ b/src/lib/layout/headerAlert.svelte @@ -0,0 +1,26 @@ + + +
+
+
+
diff --git a/src/lib/layout/index.ts b/src/lib/layout/index.ts index 9537e351b..7b1c1ddc0 100644 --- a/src/lib/layout/index.ts +++ b/src/lib/layout/index.ts @@ -17,3 +17,4 @@ export { default as Activity } from './activity.svelte'; export { default as Progress } from './progress.svelte'; export { default as GridHeader } from './gridHeader.svelte'; export { default as ContainerHeader } from './containerHeader.svelte'; +export { default as HeaderAlert } from './headerAlert.svelte'; diff --git a/src/routes/console/+layout.svelte b/src/routes/console/+layout.svelte index ee09e81f6..a01736043 100644 --- a/src/routes/console/+layout.svelte +++ b/src/routes/console/+layout.svelte @@ -1,7 +1,7 @@ @@ -40,13 +43,25 @@ title="Delete organization" onSubmit={deleteOrg} bind:show={showDelete} + bind:error icon="exclamation" state="warning" headerDivider={false}> -

- Are you sure you want to delete {$organization.name}? All projects ({$organization.total}) - and data associated with this organization will be deleted. This action is irreversible. -

+ {#if TEMPORARY_SET_FOR_DELETION} +

+ The organization {$organization.name} will be flagged for deletion. +

+ +

+ 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} diff --git a/src/routes/console/organization-[organization]/store.ts b/src/routes/console/organization-[organization]/store.ts index c753c34de..07b0ca110 100644 --- a/src/routes/console/organization-[organization]/store.ts +++ b/src/routes/console/organization-[organization]/store.ts @@ -1,3 +1,6 @@ -import { writable } from 'svelte/store'; +import { page } from '$app/stores'; +import type { Models } from '@appwrite.io/console'; +import { derived, writable } from 'svelte/store'; export const showExcess = writable(false); +export const projects = derived(page, ($page) => $page.data?.projects as Models.ProjectList); diff --git a/src/routes/console/wizard/cloudOrganization/addressDetails.svelte b/src/routes/console/wizard/cloudOrganization/addressDetails.svelte index cd22c6f43..c502e545d 100644 --- a/src/routes/console/wizard/cloudOrganization/addressDetails.svelte +++ b/src/routes/console/wizard/cloudOrganization/addressDetails.svelte @@ -3,7 +3,6 @@ import { WizardStep } from '$lib/layout'; import { onMount } from 'svelte'; import { sdk } from '$lib/stores/sdk'; - import { Alert } from '$lib/components'; import { createOrganization } from './store'; import type { AddressesList } from '$lib/sdk/billing'; @@ -32,11 +31,6 @@ Billing address Add a billing address for your organization. - - Depending on your location, your billing address might need to be in the same country - associated with the payment method for your organization. - -

Billing address

diff --git a/src/routes/console/wizard/cloudOrganizationChangeTier/addressDetails.svelte b/src/routes/console/wizard/cloudOrganizationChangeTier/addressDetails.svelte index f4d581dbc..2efc06f8f 100644 --- a/src/routes/console/wizard/cloudOrganizationChangeTier/addressDetails.svelte +++ b/src/routes/console/wizard/cloudOrganizationChangeTier/addressDetails.svelte @@ -3,7 +3,6 @@ import { WizardStep } from '$lib/layout'; import { onMount } from 'svelte'; import { sdk } from '$lib/stores/sdk'; - import { Alert } from '$lib/components'; import { changeOrganizationTier } from './store'; import { organization } from '$lib/stores/organization'; import type { AddressesList } from '$lib/sdk/billing'; @@ -35,11 +34,6 @@ Billing address Add a billing address for your organization. - - Depending on your location, your billing address might need to be in the same country - associated with the payment method for your organization. - -

Billing address