Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/routes/(console)/apply-credit/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
{/if}

<!-- show invite members -->
{#if selectedOrgId && !selectedOrg?.billingPlanDetails.addons.seats.supported}
{#if selectedOrgId && !(selectedOrg?.billingPlanDetails?.addons?.seats?.supported ?? true)}
{#if selectedOrgId === newOrgId}
<InputText
label="Organization name"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@
</Button>
</div>
<div slot="tooltip">
{!organization?.billingPlanDetails.addons.seats.supported
{!(
organization?.billingPlanDetails?.addons?.seats?.supported ??
true
)
? 'Upgrade to add more members'
: `You've reached the members limit for the ${
organization?.billingPlanDetails.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@

$: total = members?.total ?? 0;
$: organizationMembersSupported =
!$organization?.billingPlanDetails.addons.seats.supported; /* false on free */
$organization?.billingPlanDetails?.addons?.seats?.supported ??
true; /* true on paid plans */
</script>

<CardGrid>
<svelte:fragment slot="title">Members</svelte:fragment>
The number of members in your organization.
<svelte:fragment slot="aside">
{#if !organizationMembersSupported}
{#if organizationMembersSupported}
<div class="u-flex u-flex-vertical">
<Layout.Stack direction="row" justifyContent="space-between">
<Layout.Stack gap="s" direction="row" alignItems="center">
Expand Down