diff --git a/src/lib/components/fakeModal.svelte b/src/lib/components/fakeModal.svelte new file mode 100644 index 000000000..f9ab788d6 --- /dev/null +++ b/src/lib/components/fakeModal.svelte @@ -0,0 +1,152 @@ + + + + +
+ +
+ + diff --git a/src/lib/components/index.ts b/src/lib/components/index.ts index 2db1b6dcb..ad95ebff6 100644 --- a/src/lib/components/index.ts +++ b/src/lib/components/index.ts @@ -67,3 +67,4 @@ export { default as SvgIcon } from './svgIcon.svelte'; export { default as MigrationBox } from './migrationBox.svelte'; export { default as FloatingActionBar } from './floatingActionBar.svelte'; export { default as LoadingDots } from './loadingDots.svelte'; +export { default as FakeModal } from './fakeModal.svelte'; diff --git a/src/routes/console/account/payments/paymentModal.svelte b/src/routes/console/account/payments/paymentModal.svelte index 07d730529..6c6321c71 100644 --- a/src/routes/console/account/payments/paymentModal.svelte +++ b/src/routes/console/account/payments/paymentModal.svelte @@ -1,23 +1,18 @@ - - -
- -
- - +
+ +
+ + + + + + diff --git a/src/routes/console/organization-[organization]/billing/replaceCard.svelte b/src/routes/console/organization-[organization]/billing/replaceCard.svelte index c00e608ee..237e478fb 100644 --- a/src/routes/console/organization-[organization]/billing/replaceCard.svelte +++ b/src/routes/console/organization-[organization]/billing/replaceCard.svelte @@ -1,6 +1,6 @@ -

Replace the existing payment method for your organization.

-
- {#if methods?.total} - {#each filteredMethods as method} -
+ +
+ {#if methods?.total} + {#each filteredMethods as method} +
+ + + + + {method.brand} ending in {method.last4} + + + {#if method.$id === $organization.backupPaymentMethodId} + Backup + {:else if method.$id === $organization.paymentMethodId} + Default + {/if} + + +
+ {/each} + {/if} + +
+ {#if methods?.total} - - - - {method.brand} ending in {method.last4} - - - {#if method.$id === $organization.backupPaymentMethodId} - Backup - {:else if method.$id === $organization.paymentMethodId} - Default - {/if} - + Add new payment method -
- {/each} - {/if} + {/if} + {#if selectedPaymentMethodId === null} + + -
- {#if methods?.total} - - {/if} - {#if selectedPaymentMethodId === null} - - - -
- -
-
- {/if} +
+ +
+ + {/if} +
-
+ - + diff --git a/src/routes/console/wizard/cloudOrganizationChangeTier/choosePlan.svelte b/src/routes/console/wizard/cloudOrganizationChangeTier/choosePlan.svelte index 21a1ea31a..847840580 100644 --- a/src/routes/console/wizard/cloudOrganizationChangeTier/choosePlan.svelte +++ b/src/routes/console/wizard/cloudOrganizationChangeTier/choosePlan.svelte @@ -18,6 +18,7 @@ $: if ($changeOrganizationTier.billingPlan === 'tier-0' && $changeTierSteps) { $changeTierSteps = updateStepStatus($changeTierSteps, 2, true); $changeTierSteps = updateStepStatus($changeTierSteps, 3, true); + $changeTierSteps = updateStepStatus($changeTierSteps, 4, true); } $: if ( @@ -26,6 +27,7 @@ ) { $changeTierSteps = updateStepStatus($changeTierSteps, 2, false); $changeTierSteps = updateStepStatus($changeTierSteps, 3, false); + $changeTierSteps = updateStepStatus($changeTierSteps, 4, false); } $: if ($changeOrganizationTier.billingPlan) { @@ -73,10 +75,12 @@ members = await sdk.forConsole.teams.listMemberships($organization.$id); //Select closest tier from starting one - if ($organization.billingPlan === 'tier-2') { - $changeOrganizationTier.billingPlan = 'tier-1'; - } else if ($organization.billingPlan === 'tier-1') { - $changeOrganizationTier.billingPlan = 'tier-2'; + // if ($organization.billingPlan === 'tier-2') { + // $changeOrganizationTier.billingPlan = 'tier-1'; + // } + // else + if ($organization.billingPlan === 'tier-1') { + $changeOrganizationTier.billingPlan = 'tier-0'; } else if ($organization.billingPlan === 'tier-0') { $changeOrganizationTier.billingPlan = 'tier-1'; } diff --git a/src/routes/console/wizard/cloudOrganizationChangeTier/confirmDetails.svelte b/src/routes/console/wizard/cloudOrganizationChangeTier/confirmDetails.svelte index 651833cab..57f6e439c 100644 --- a/src/routes/console/wizard/cloudOrganizationChangeTier/confirmDetails.svelte +++ b/src/routes/console/wizard/cloudOrganizationChangeTier/confirmDetails.svelte @@ -1,7 +1,7 @@