mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-19 00:31:39 +01:00
confirm before logging out
This commit is contained in:
parent
f998041748
commit
af85fe3892
@ -42,9 +42,13 @@ export class SettingsView extends TemplateView {
|
||||
row(t, vm.i18n`Session ID`, vm.deviceId, "code"),
|
||||
row(t, vm.i18n`Session key`, vm.fingerprintKey, "code"),
|
||||
row(t, "", t.button({
|
||||
onClick: () => vm.logout(),
|
||||
onClick: () => {
|
||||
if (confirm(vm.i18n`Are you sure you want to log out?`)) {
|
||||
vm.logout();
|
||||
}
|
||||
},
|
||||
disabled: vm => vm.isLoggingOut
|
||||
}, "Logout"))
|
||||
}, vm.i18n`Log out`))
|
||||
);
|
||||
settingNodes.push(
|
||||
t.h3("Session Backup"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user