From 0b0947f7bf1dd3fe9004e53ba4d52068677ce3c8 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Fri, 22 Sep 2023 01:12:29 +0200 Subject: [PATCH] upd: Add logout button --- packages/frontend/src/account.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/frontend/src/account.ts b/packages/frontend/src/account.ts index 0e4e4b50ff..c17be6fc62 100644 --- a/packages/frontend/src/account.ts +++ b/packages/frontend/src/account.ts @@ -300,6 +300,11 @@ export async function openAccountMenu(opts: { icon: 'ti ti-users', text: i18n.ts.manageAccounts, to: '/settings/accounts', + }, { + type: 'button' as const, + icon: 'ti ti-power', + text: i18n.ts.logout, + action: () => { signout(); }, }]], ev.currentTarget ?? ev.target, { align: 'left', });