Update upgrade button URL for cloud accounts
This commit is contained in:
parent
4e7daa66ed
commit
0aa72e5147
1 changed files with 10 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue