[pve-devel] [PATCH pve-manager 2/3] Comment out missing/broken JS classes so we can select nodes in the left ressource tree with ExtJS6
Emmanuel Kasper
e.kasper at proxmox.com
Mon Jan 25 15:19:27 CET 2016
---
www/manager6/lxc/Config.js | 152 ++++++++++++++++++++--------------------
www/manager6/qemu/Config.js | 12 ++--
www/manager6/storage/Browser.js | 19 +++--
3 files changed, 98 insertions(+), 85 deletions(-)
diff --git a/www/manager6/lxc/Config.js b/www/manager6/lxc/Config.js
index e42a3c5..399b352 100644
--- a/www/manager6/lxc/Config.js
+++ b/www/manager6/lxc/Config.js
@@ -121,87 +121,89 @@ Ext.define('PVE.lxc.Config', {
defaults: { statusStore: me.statusStore },
items: [
{
- title: gettext('Summary'),
- xtype: 'pveLxcSummary',
+// title: gettext('Summary'),
+// xtype: 'pveLxcSummary',
+ title: gettext('SummaryTODO'),
+ 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
+// }
]
});
- if (caps.vms['VM.Backup']) {
- me.items.push({
- title: gettext('Backup'),
- xtype: 'pveBackupView',
- itemId: 'backup'
- });
- }
-
- 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.Backup']) {
+// me.items.push({
+// title: gettext('Backup'),
+// xtype: 'pveBackupView',
+// itemId: 'backup'
+// });
+// }
+
+// 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.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({
- xtype: 'pveACLView',
- title: gettext('Permissions'),
- itemId: 'permissions',
- path: '/vms/' + vmid
- });
- }
+// 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['Permissions.Modify']) {
+// me.items.push({
+// xtype: 'pveACLView',
+// title: gettext('Permissions'),
+// itemId: 'permissions',
+// path: '/vms/' + vmid
+// });
+// }
me.callParent();
diff --git a/www/manager6/qemu/Config.js b/www/manager6/qemu/Config.js
index 19a331b..6f1d215 100644
--- a/www/manager6/qemu/Config.js
+++ b/www/manager6/qemu/Config.js
@@ -132,10 +132,14 @@ Ext.define('PVE.qemu.Config', {
defaults: { statusStore: me.statusStore },
items: [
{
- title: gettext('Summary'),
- xtype: 'pveQemuSummary',
+ title: gettext('SummaryTODO'),
+ xtype: 'panel',
+// title: gettext('Summary'),
+// xtype: 'pveQemuSummary',
itemId: 'summary'
- },
+ } ]
+ });
+/*
{
title: gettext('Hardware'),
itemId: 'hardware',
@@ -211,7 +215,7 @@ Ext.define('PVE.qemu.Config', {
path: '/vms/' + vmid
});
}
-
+*/
me.callParent();
me.statusStore.on('load', function(s, records, success) {
diff --git a/www/manager6/storage/Browser.js b/www/manager6/storage/Browser.js
index aeb5a2c..c78dee5 100644
--- a/www/manager6/storage/Browser.js
+++ b/www/manager6/storage/Browser.js
@@ -19,8 +19,10 @@ Ext.define('PVE.storage.Browser', {
me.items = [
{
- title: gettext('Summary'),
- xtype: 'pveStorageSummary',
+ title: gettext('SummaryTODO'),
+ xtype: 'panel',
+// title: gettext('Summary'),
+// xtype: 'pveStorageSummary',
itemId: 'summary'
}
];
@@ -33,16 +35,21 @@ Ext.define('PVE.storage.Browser', {
if (caps.storage['Datastore.Allocate']) {
me.items.push({
- xtype: 'pveStorageContentView',
- title: gettext('Content'),
+ xtype: 'gridpanel',
+ title: gettext('ContentTODO'),
+// xtype: 'pveStorageContentView',
+// title: gettext('Content'),
itemId: 'content'
});
}
if (caps.storage['Permissions.Modify']) {
me.items.push({
- xtype: 'pveACLView',
- title: gettext('Permissions'),
+ xtype: 'window',
+ title: gettext('PermissionsTODO'),
+// xtype: 'pveACLView',
+// title: gettext('Permissions'),
+
itemId: 'permissions',
path: '/storage/' + storeid
});
--
2.1.4
More information about the pve-devel
mailing list