Comment out missing/broken JS classes so we can select nodes in the left ressource tree with ExtJS6

This commit is contained in:
Emmanuel Kasper 2016-01-25 15:19:27 +01:00 committed by Dietmar Maurer
parent bcd1fd98cf
commit 027ed062d3
3 changed files with 95 additions and 82 deletions

View File

@ -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.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.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({
xtype: 'pveACLView',
title: gettext('Permissions'),
itemId: 'permissions',
path: '/vms/' + vmid
});
}
// if (caps.vms['Permissions.Modify']) {
// me.items.push({
// xtype: 'pveACLView',
// title: gettext('Permissions'),
// itemId: 'permissions',
// path: '/vms/' + vmid
// });
// }
me.callParent();

View File

@ -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) {

View File

@ -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
});