upd: Add logout button

This commit is contained in:
Mar0xy 2023-09-22 01:12:29 +02:00
parent b8a8e44905
commit 0b0947f7bf
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
1 changed files with 5 additions and 0 deletions

View File

@ -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',
});