]>
Commit | Line | Data |
---|---|---|
922f5450 DM |
1 | Ext.define('PVE.panel.HA', { |
2 | extend: 'PVE.panel.SubConfig', | |
3 | alias: 'widget.pveHAPanel', | |
4 | ||
5 | configPrefix: 'ha', | |
6 | ||
7 | initComponent: function() { | |
8 | /*jslint confusion: true */ | |
9 | var me = this; | |
10 | ||
11 | var items = [ | |
12 | { | |
13 | title: gettext('Status'), | |
14 | xtype: 'pveHAStatusView', | |
15 | itemId: 'status' | |
16 | }, | |
17 | { | |
18 | title: gettext('Resources'), | |
19 | xtype: 'pveHAResourcesView', | |
20 | itemId: 'resources' | |
21 | }, | |
22 | { | |
23 | title: gettext('Groups'), | |
24 | xtype: 'pveHAGroupsView', | |
25 | itemId: 'groups' | |
26 | }, | |
27 | { | |
28 | title: gettext('Fencing'), | |
29 | xtype: 'pveFencingView', | |
30 | itemId: 'fencing' | |
31 | } | |
32 | ]; | |
33 | ||
34 | Ext.apply(me, { | |
35 | defaults: { | |
36 | border: false, | |
37 | pveSelNode: me.pveSelNode | |
38 | }, | |
7e27f5d1 DC |
39 | plugins: [{ |
40 | ptype: 'lazyitems', | |
41 | items: items | |
42 | }], | |
922f5450 DM |
43 | }); |
44 | ||
45 | me.callParent(); | |
46 | } | |
47 | }); |