From 8d9f677c4e9ccfcc6dc9297864dc49446fb5ee59 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Wed, 10 Jul 2024 15:56:33 +0100 Subject: feat(gui): use fancy new side nav (#2243) * feat(gui): use fancy new side nav * compact only sidebar, no expand-collapse * custom drag region, remove titlebar * add user popup * wire up login/logout/register, move user button to bottom and add menu * link help and feedback to forum --- ui/src/state/client.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/src/state/client.ts') diff --git a/ui/src/state/client.ts b/ui/src/state/client.ts index 5ec0d8a7..c46fc4e6 100644 --- a/ui/src/state/client.ts +++ b/ui/src/state/client.ts @@ -20,6 +20,10 @@ export async function login( return await invoke("login", { username, password, key }); } +export async function logout(): Promise { + return await invoke("logout"); +} + export async function register( username: string, email: string, -- cgit v1.3.1