Fix mobile menu upgrade button not closing menu

This commit is contained in:
Andrew Kingston 2023-01-12 15:42:59 +00:00
parent 034871ebad
commit e32dc5237a
2 changed files with 7 additions and 2 deletions

View File

@ -38,7 +38,7 @@
{/each}
</SideNav>
<div>
<UpgradeButton />
<UpgradeButton on:click={close} />
</div>
</Layout>
</div>

View File

@ -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}