|
|
@ -3321,6 +3321,13 @@ define([
|
|
|
|
options.push({ tag: 'hr' });
|
|
|
|
options.push({ tag: 'hr' });
|
|
|
|
// Add login or logout button depending on the current status
|
|
|
|
// Add login or logout button depending on the current status
|
|
|
|
if (accountName) {
|
|
|
|
if (accountName) {
|
|
|
|
|
|
|
|
options.push({
|
|
|
|
|
|
|
|
tag: 'a',
|
|
|
|
|
|
|
|
attributes: {
|
|
|
|
|
|
|
|
'class': 'cp-toolbar-menu-logout-everywhere fa fa-plug',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
content: h('span', "CLOSE REMOTE SESSIONS") // XXX Messages.settings_logoutEverywhereTitle)
|
|
|
|
|
|
|
|
});
|
|
|
|
options.push({
|
|
|
|
options.push({
|
|
|
|
tag: 'a',
|
|
|
|
tag: 'a',
|
|
|
|
attributes: {'class': 'cp-toolbar-menu-logout fa fa-sign-out'},
|
|
|
|
attributes: {'class': 'cp-toolbar-menu-logout fa fa-sign-out'},
|
|
|
@ -3407,6 +3414,10 @@ define([
|
|
|
|
window.parent.location = origin+'/';
|
|
|
|
window.parent.location = origin+'/';
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$userAdmin.find('a.cp-toolbar-menu-logout-everywhere').click(function () {
|
|
|
|
|
|
|
|
Common.getSframeChannel().query('Q_LOGOUT_EVERYWHERE', null, function () { });
|
|
|
|
|
|
|
|
});
|
|
|
|
$userAdmin.find('a.cp-toolbar-menu-settings').click(function () {
|
|
|
|
$userAdmin.find('a.cp-toolbar-menu-settings').click(function () {
|
|
|
|
if (padType) {
|
|
|
|
if (padType) {
|
|
|
|
window.open(origin+'/settings/');
|
|
|
|
window.open(origin+'/settings/');
|
|
|
|