Fix mobile menu upgrade button not closing menu
This commit is contained in:
parent
034871ebad
commit
e32dc5237a
|
@ -38,7 +38,7 @@
|
||||||
{/each}
|
{/each}
|
||||||
</SideNav>
|
</SideNav>
|
||||||
<div>
|
<div>
|
||||||
<UpgradeButton />
|
<UpgradeButton on:click={close} />
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue