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/backend/src/main.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ui/backend/src/main.rs') diff --git a/ui/backend/src/main.rs b/ui/backend/src/main.rs index 7adbbbe5..147bf413 100644 --- a/ui/backend/src/main.rs +++ b/ui/backend/src/main.rs @@ -110,6 +110,16 @@ async fn login(username: String, password: String, key: String) -> Result Result<(), String> { + let settings = Settings::new().map_err(|e| e.to_string())?; + + atuin_client::logout::logout(&settings) + .map_err(|e| e.to_string())?; + + Ok(()) +} + #[tauri::command] async fn register(username: String, email: String, password: String) -> Result { let settings = Settings::new().map_err(|e| e.to_string())?; @@ -257,6 +267,7 @@ fn main() { config, session, login, + logout, register, history_calendar, run::pty::pty_open, -- cgit v1.3.1