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

View file

@ -300,6 +300,11 @@ export async function openAccountMenu(opts: {
icon: 'ti ti-users', icon: 'ti ti-users',
text: i18n.ts.manageAccounts, text: i18n.ts.manageAccounts,
to: '/settings/accounts', to: '/settings/accounts',
}, {
type: 'button' as const,
icon: 'ti ti-power',
text: i18n.ts.logout,
action: () => { signout(); },
}]], ev.currentTarget ?? ev.target, { }]], ev.currentTarget ?? ev.target, {
align: 'left', align: 'left',
}); });