JSSRC= \
Utils.js \
LoginWindow.js \
+ ServerStatus.js \
ServerAdministration.js \
ObjectGroupList.js \
ObjectGroup.js \
defaults: { border: false },
items: [
+ {
+ xtype: 'pmgServerStatus'
+ },
{
xtype: 'proxmoxNodeServiceView',
title: gettext('Services'),
--- /dev/null
+Ext.define('PMG.ServerStatus', {
+ extend: 'Ext.panel.Panel',
+ alias: 'widget.pmgServerStatus',
+
+ title: gettext('Status'),
+
+ border: false,
+
+ tbar: [
+ {
+ text: gettext("Console"),
+ handler: function() {
+ PMG.Utils.openVNCViewer('shell', Proxmox.NodeName);
+ }
+ }
+ ]
+
+});
+
}
},
+ openVNCViewer: function(consoletype, nodename) {
+ var url = Ext.urlEncode({
+ console: consoletype, // upgrade or shell
+ novnc: 1,
+ node: nodename
+ });
+ var nw = window.open("?" + url, '_blank',
+ "innerWidth=745,innerheight=427");
+ nw.focus();
+ },
+
constructor: function() {
var me = this;