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} {/each}
</SideNav> </SideNav>
<div> <div>
<UpgradeButton /> <UpgradeButton on:click={close} />
</div> </div>
</Layout> </Layout>
</div> </div>

View File

@ -7,6 +7,7 @@
{#if $admin.cloud && $auth?.user?.accountPortalAccess} {#if $admin.cloud && $auth?.user?.accountPortalAccess}
<Button <Button
cta cta
on:click
on:click={() => { on:click={() => {
$goto($admin.accountPortalUrl + "/portal/upgrade") $goto($admin.accountPortalUrl + "/portal/upgrade")
}} }}
@ -14,7 +15,11 @@
Upgrade Upgrade
</Button> </Button>
{:else if !$admin.cloud && $auth.isAdmin} {: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 Upgrade
</Button> </Button>
{/if} {/if}