mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-06-12 13:08:53 +00:00

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>
48 lines
780 B
JavaScript
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();
|
|
}
|
|
});
|