[pve-devel] [PATCH pve-manager 3/3] enable a first group of LXC panels
Emmanuel Kasper
e.kasper at proxmox.com
Thu Mar 3 14:43:23 CET 2016
---
www/manager6/lxc/Config.js | 110 ++++++++++++++++++++++-----------------------
1 file changed, 55 insertions(+), 55 deletions(-)
diff --git a/www/manager6/lxc/Config.js b/www/manager6/lxc/Config.js
index a05fb08..8902c86 100644
--- a/www/manager6/lxc/Config.js
+++ b/www/manager6/lxc/Config.js
@@ -127,32 +127,32 @@ Ext.define('PVE.lxc.Config', {
xtype: 'panel',
itemId: 'summary'
},
-// {
-// title: gettext('Resources'),
-// itemId: 'resources',
-// xtype: 'pveLxcRessourceView'
-// },
-// {
-// title: gettext('Network'),
-// itemId: 'network',
-// xtype: 'pveLxcNetworkView'
-// },
-// {
-// title: gettext('DNS'),
-// itemId: 'dns',
-// xtype: 'pveLxcDNS'
-// },
-// {
-// title: gettext('Options'),
-// itemId: 'options',
-// xtype: 'pveLxcOptions'
-// },
-// {
-// title: gettext('Task History'),
-// itemId: 'tasks',
-// xtype: 'pveNodeTasks',
-// vmidFilter: vmid
-// }
+ {
+ title: gettext('Resources'),
+ itemId: 'resources',
+ xtype: 'pveLxcRessourceView'
+ },
+ {
+ title: gettext('Network'),
+ itemId: 'network',
+ xtype: 'pveLxcNetworkView'
+ },
+ {
+ title: gettext('DNS'),
+ itemId: 'dns',
+ xtype: 'pveLxcDNS'
+ },
+ {
+ title: gettext('Options'),
+ itemId: 'options',
+ xtype: 'pveLxcOptions'
+ },
+ {
+ title: gettext('Task History'),
+ itemId: 'tasks',
+ xtype: 'pveNodeTasks',
+ vmidFilter: vmid
+ }
]
});
@@ -164,37 +164,37 @@ Ext.define('PVE.lxc.Config', {
// });
// }
-// if (caps.vms['VM.Console']) {
-// me.items.push({
-// title: gettext('Console'),
-// itemId: 'console',
-// xtype: 'pveNoVncConsole',
-// vmid: vmid,
-// consoleType: 'lxc',
-// nodename: nodename
-// });
-// }
+ if (caps.vms['VM.Console']) {
+ me.items.push({
+ title: gettext('Console'),
+ itemId: 'console',
+ xtype: 'pveNoVncConsole',
+ vmid: vmid,
+ consoleType: 'lxc',
+ nodename: nodename
+ });
+ }
-// if (caps.vms['VM.Snapshot']) {
-// me.items.push({
-// title: gettext('Snapshots'),
-// xtype: 'pveLxcSnapshotTree',
-// itemId: 'snapshot'
-// });
-// }
+ if (caps.vms['VM.Snapshot']) {
+ me.items.push({
+ title: gettext('Snapshots'),
+ xtype: 'pveLxcSnapshotTree',
+ itemId: 'snapshot'
+ });
+ }
-// if (caps.vms['VM.Console']) {
-// me.items.push(
-// {
-// xtype: 'pveFirewallPanel',
-// title: gettext('Firewall'),
-// base_url: base_url + '/firewall',
-// fwtype: 'vm',
-// phstateid: me.hstateid,
-// itemId: 'firewall'
-// }
-// );
-// }
+ if (caps.vms['VM.Console']) {
+ me.items.push(
+ {
+ xtype: 'pveFirewallPanel',
+ title: gettext('Firewall'),
+ base_url: base_url + '/firewall',
+ fwtype: 'vm',
+ phstateid: me.hstateid,
+ itemId: 'firewall'
+ }
+ );
+ }
// if (caps.vms['Permissions.Modify']) {
// me.items.push({
--
2.1.4
More information about the pve-devel
mailing list