From 314ce0e656107ab43a8e8681d85525a551f83f21 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Thu, 15 Jan 2026 18:17:49 +0800 Subject: feat: Implement logout confirmation dialog and enhance account status display in BottomBar for improved user experience --- ui/src/components/BottomBar.svelte | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'ui/src/components') diff --git a/ui/src/components/BottomBar.svelte b/ui/src/components/BottomBar.svelte index abb0b23..9dcb9ac 100644 --- a/ui/src/components/BottomBar.svelte +++ b/ui/src/components/BottomBar.svelte @@ -67,12 +67,23 @@ {authState.currentAccount ? authState.currentAccount.username : "Login Account"}
- - {authState.currentAccount ? "Online" : "Guest"} + {#if authState.currentAccount} + {#if authState.currentAccount.type === "Microsoft"} + {#if authState.currentAccount.expires_at && authState.currentAccount.expires_at * 1000 < Date.now()} + + Expired + {:else} + + Online + {/if} + {:else} + + Offline + {/if} + {:else} + + Guest + {/if}
-- cgit v1.2.3-70-g09d2