Fix mobile menu upgrade button not closing menu
This commit is contained in:
parent
034871ebad
commit
e32dc5237a
|
@ -38,7 +38,7 @@
|
|||
{/each}
|
||||
</SideNav>
|
||||
<div>
|
||||
<UpgradeButton />
|
||||
<UpgradeButton on:click={close} />
|
||||
</div>
|
||||
</Layout>
|
||||
</div>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
{#if $admin.cloud && $auth?.user?.accountPortalAccess}
|
||||
<Button
|
||||
cta
|
||||
on:click
|
||||
on:click={() => {
|
||||
$goto($admin.accountPortalUrl + "/portal/upgrade")
|
||||
}}
|
||||
|
@ -14,7 +15,11 @@
|
|||
Upgrade
|
||||
</Button>
|
||||
{:else if !$admin.cloud && $auth.isAdmin}
|
||||
<Button cta on:click={() => $goto("/builder/portal/account/upgrade")}>
|
||||
<Button
|
||||
cta
|
||||
on:click={() => $goto("/builder/portal/account/upgrade")}
|
||||
on:click
|
||||
>
|
||||
Upgrade
|
||||
</Button>
|
||||
{/if}
|
||||
|
|
Loading…
Reference in New Issue