Display confirmation on "Log out everywhere" in the upper right menu

addresses #765
pull/1/head
ansuz 4 years ago
parent 59f24344a6
commit 663f0d8771

@ -1886,9 +1886,12 @@ define([
}, },
content: h('span', Messages.logoutEverywhere), content: h('span', Messages.logoutEverywhere),
action: function () { action: function () {
UI.confirm(Messages.settings_logoutEverywhereConfirm, function (yes) {
if (!yes) { return; }
Common.getSframeChannel().query('Q_LOGOUT_EVERYWHERE', null, function () { Common.getSframeChannel().query('Q_LOGOUT_EVERYWHERE', null, function () {
Common.gotoURL(origin + '/'); Common.gotoURL(origin + '/');
}); });
});
}, },
}); });
options.push({ options.push({

Loading…
Cancel
Save