Set todo's for changeing

This commit is contained in:
ernstmul committed 2024-12-16 14:23:03 +01:00
1 parent 634725c93e
commit d232fb5e92
5 files changed
+7

No files matched your search

+2
View File
@@ -13,6 +13,7 @@
export let show = false;
// TODO: fix to use plan details with 'premiumSupport' property
$: isPaid =
$organization?.billingPlan === BillingPlan.PRO ||
$organization?.billingPlan === BillingPlan.SCALE;
@@ -30,6 +31,7 @@
</p>
{/if}
</div>
<!-- TODO: fix to use plan details with 'premiumSupport' property -->
{#if $organization?.billingPlan === BillingPlan.FREE}
<Button
fullWidth
+1
View File
@@ -6,6 +6,7 @@
import { organization } from '$lib/stores/organization';
export let title: string;
// TODO: this .FREE plan so be checked against the correct plan value, not the actual tier
export let tooltipContent =
$organization?.billingPlan === BillingPlan.FREE
? `Upgrade to add more ${title.toLocaleLowerCase()}`
@@ -59,6 +59,7 @@
class="link">Learn more about usage rates.</button>
</p>
<svelte:fragment slot="aside">
<!-- TODO: show this based on the plan detail for budgetcap-->
{#if $organization?.billingPlan === BillingPlan.FREE}
<Alert type="info">
<svelte:fragment slot="title">
@@ -268,6 +268,7 @@
</Collapsible>
</svelte:fragment>
</CardGrid>-->
<!-- // TODO change check to plan details emailBranding property-->
{#if isCloud && $organization?.billingPlan === BillingPlan.FREE}
<EmailSignature />
{/if}
@@ -24,12 +24,14 @@
let policyCreateError: string;
let totalPolicies: UserBackupPolicy[] = [];
// TODO: check the plan to see if the custom policies are disabled
let isDisabled = isSelfHosted || (isCloud && $organization?.billingPlan === BillingPlan.FREE);
export let data: PageData;
$: hasPolicyCreationLimitations = () => {
// allow when on Pro and no policy exists
// TODO: check the plan to see if the custom policies are disabled and limitations
if ($organization?.billingPlan === BillingPlan.PRO) {
return data.policies.total > 0;
} else if ($organization?.billingPlan === BillingPlan.SCALE) {