Update upgrade button URL for cloud accounts

This commit is contained in:
Andrew Kingston 2023-01-09 16:16:03 +00:00
parent 4e7daa66ed
commit 0aa72e5147
1 changed files with 10 additions and 1 deletions

View File

@ -140,7 +140,16 @@
alt={$organisation?.company || "Budibase"}
/>
</div>
{#if !$adminStore.cloud && $auth.isAdmin}
{#if $adminStore.cloud && $auth?.user?.accountPortalAccess}
<Button
cta
on:click={() => {
$goto($adminStore.accountPortalUrl + "/portal/upgrade")
}}
>
Upgrade
</Button>
{:else if !$adminStore.cloud && $auth.isAdmin}
<Button cta on:click={() => $goto("/builder/portal/account/upgrade")}>
Upgrade
</Button>