]>
Commit | Line | Data |
---|---|---|
0004edad DM |
1 | Ext.define('PVE.pool.Config', { |
2 | extend: 'PVE.panel.Config', | |
3 | alias: 'widget.pvePoolConfig', | |
4 | ||
5 | initComponent: function() { | |
6 | var me = this; | |
7 | ||
8 | var pool = me.pveSelNode.data.pool; | |
9 | if (!pool) { | |
10 | throw "no pool specified"; | |
11 | } | |
12 | ||
13 | Ext.apply(me, { | |
14 | title: Ext.String.format(gettext("Resource Pool") + ': ' + pool), | |
15 | hstateid: 'pooltab', | |
16 | items: [ | |
17 | { | |
18 | title: gettext('Summary'), | |
19 | xtype: 'pvePoolSummary', | |
20 | itemId: 'summary' | |
21 | }, | |
19a6b9f1 DM |
22 | { |
23 | title: gettext('Members'), | |
24 | xtype: 'pvePoolMembers', | |
25 | pool: pool, | |
26 | itemId: 'members' | |
27 | }, | |
0004edad DM |
28 | { |
29 | xtype: 'pveACLView', | |
30 | title: gettext('Permissions'), | |
31 | itemId: 'permissions', | |
32 | path: '/pool/' + pool | |
33 | } | |
34 | ] | |
35 | }); | |
36 | ||
37 | me.callParent(); | |
38 | } | |
39 | }); |