ext6migrate: make some (sub)tabs lazy

make following (sub)tabs lazy:
 * ceph
 * firewall
 * ha
 * search
 * lxc/Resources

we have to add layout: 'fit', whereever we make a whole tab lazy
and we have to move the title of the search tab to the instantiaton
instead of the class definition, because the search grid is now a
sub component instead of a tab

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2016-03-16 15:58:14 +01:00 committed by Dietmar Maurer
parent a39018a72e
commit 7e27f5d1b4
5 changed files with 73 additions and 49 deletions

View File

@ -64,6 +64,8 @@ Ext.define('PVE.node.Ceph', {
border: false,
pveSelNode: me.pveSelNode
},
plugins: {
ptype: 'lazyitems',
items: [
{
xtype: 'pveNodeCephStatus',
@ -107,6 +109,7 @@ Ext.define('PVE.node.Ceph', {
url: "/api2/extjs/nodes/" + nodename + "/ceph/log"
}
],
}
});
me.callParent();

View File

@ -36,7 +36,10 @@ Ext.define('PVE.panel.HA', {
border: false,
pveSelNode: me.pveSelNode
},
plugins: [{
ptype: 'lazyitems',
items: items
}],
});
me.callParent();

View File

@ -128,7 +128,14 @@ Ext.define('PVE.lxc.Config', {
{
title: gettext('Resources'),
itemId: 'resources',
xtype: 'pveLxcRessourceView'
layout: 'fit',
plugins: {
ptype: 'lazyitems',
items: {
xtype: 'pveLxcRessourceView',
pveSelNode: me.pveSelNode
}
}
},
{
title: gettext('Network'),

View File

@ -50,7 +50,15 @@ Ext.define('PVE.panel.Config', {
if (me.showSearch) {
items.unshift({
itemId: 'search',
xtype: 'pveResourceGrid'
title: gettext('Search'),
layout: 'fit',
plugins: {
ptype: 'lazyitems',
items: {
xtype: 'pveResourceGrid',
pveSelNode: me.pveSelNode
}
}
});
}

View File

@ -89,7 +89,10 @@ Ext.define('PVE.panel.Firewall', {
border: false,
pveSelNode: me.pveSelNode
},
plugins: [{
ptype: 'lazyitems',
items: items
}],
});
me.callParent();