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,8 +1886,11 @@ define([
}, },
content: h('span', Messages.logoutEverywhere), content: h('span', Messages.logoutEverywhere),
action: function () { action: function () {
Common.getSframeChannel().query('Q_LOGOUT_EVERYWHERE', null, function () { UI.confirm(Messages.settings_logoutEverywhereConfirm, function (yes) {
Common.gotoURL(origin + '/'); if (!yes) { return; }
Common.getSframeChannel().query('Q_LOGOUT_EVERYWHERE', null, function () {
Common.gotoURL(origin + '/');
});
}); });
}, },
}); });

Loading…
Cancel
Save