pve-manager/www/manager6/ha/Config.js
Dominik Csapak 7e27f5d1b4 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>
2016-03-16 16:32:40 +01:00

48 lines
780 B
JavaScript

Ext.define('PVE.panel.HA', {
extend: 'PVE.panel.SubConfig',
alias: 'widget.pveHAPanel',
configPrefix: 'ha',
initComponent: function() {
/*jslint confusion: true */
var me = this;
var items = [
{
title: gettext('Status'),
xtype: 'pveHAStatusView',
itemId: 'status'
},
{
title: gettext('Resources'),
xtype: 'pveHAResourcesView',
itemId: 'resources'
},
{
title: gettext('Groups'),
xtype: 'pveHAGroupsView',
itemId: 'groups'
},
{
title: gettext('Fencing'),
xtype: 'pveFencingView',
itemId: 'fencing'
}
];
Ext.apply(me, {
defaults: {
border: false,
pveSelNode: me.pveSelNode
},
plugins: [{
ptype: 'lazyitems',
items: items
}],
});
me.callParent();
}
});