|
655 |
} |
655 |
} |
656 |
}, |
656 |
}, |
657 |
|
657 |
|
|
|
658 |
addRebootMenu: function() { |
659 |
//if (!require('umc/app').getModule('lib')) { |
660 |
// return; // no permissions to reboot the server |
661 |
//} |
662 |
try { |
663 |
var libServer = require('umc/modules/lib/server'); |
664 |
} catch (error) { |
665 |
return; // module has not been loaded before, so we don't have permissions... cooler would be the commented out thing from above |
666 |
} |
667 |
this._headerMenu.addChild(new MenuItem({ |
668 |
id: 'umcMenuReboot', |
669 |
iconClass: 'icon24-umc-menu-reboot', |
670 |
label: _('Reboot server'), |
671 |
onClick: function() { |
672 |
libServer.askReboot(); |
673 |
} |
674 |
})); |
675 |
}, |
676 |
|
658 |
setupSearchField: function() { |
677 |
setupSearchField: function() { |
659 |
// add an empty element to force a line break |
678 |
// add an empty element to force a line break |
660 |
this._headerRight.addChild(new Text({ |
679 |
this._headerRight.addChild(new Text({ |
|
1091 |
if (tools.status('overview')) { |
1110 |
if (tools.status('overview')) { |
1092 |
topic.publish('/umc/startup/checks'); |
1111 |
topic.publish('/umc/startup/checks'); |
1093 |
} |
1112 |
} |
|
|
1113 |
|
1114 |
this._header.addRebootMenu(); |
1094 |
})); |
1115 |
})); |
1095 |
|
1116 |
|
1096 |
this._setupStaticGui = true; |
1117 |
this._setupStaticGui = true; |