mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-25 01:13:39 +10:00
fix: signout, again
This commit is contained in:
@@ -58,6 +58,18 @@
|
|||||||
{{ nav.label }}
|
{{ nav.label }}
|
||||||
</button>
|
</button>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
<MenuItem v-slot="{ active, close }" hydrate-on-visible as="div">
|
||||||
|
<!-- TODO: think this would work better as a NuxtLink instead of a button -->
|
||||||
|
<a
|
||||||
|
:class="[
|
||||||
|
active ? 'bg-zinc-800 text-zinc-100' : 'text-zinc-400',
|
||||||
|
'w-full text-left transition block px-4 py-2 text-sm',
|
||||||
|
]"
|
||||||
|
href="/auth/signout"
|
||||||
|
>
|
||||||
|
Signout
|
||||||
|
</a>
|
||||||
|
</MenuItem>
|
||||||
</div>
|
</div>
|
||||||
</PanelWidget>
|
</PanelWidget>
|
||||||
</MenuItems>
|
</MenuItems>
|
||||||
@@ -86,10 +98,5 @@ const navigation: NavigationItem[] = [
|
|||||||
route: "/account",
|
route: "/account",
|
||||||
prefix: "",
|
prefix: "",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: "Sign out",
|
|
||||||
route: "/auth/signout",
|
|
||||||
prefix: "",
|
|
||||||
},
|
|
||||||
].filter((e) => e !== undefined);
|
].filter((e) => e !== undefined);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user