]>
Commit | Line | Data |
---|---|---|
5289a1b8 | 1 | /* |
6d55c93e | 2 | * Datacenter config panel, located in the center of the ViewPort after the Datacenter view is selected |
5289a1b8 EK |
3 | */ |
4 | ||
acf7653a DM |
5 | Ext.define('PVE.dc.Config', { |
6 | extend: 'PVE.panel.Config', | |
7 | alias: 'widget.PVE.dc.Config', | |
8 | ||
9 | initComponent: function() { | |
10 | var me = this; | |
11 | ||
12 | var caps = Ext.state.Manager.get('GuiCap'); | |
13 | ||
14 | me.items = []; | |
15 | ||
16 | Ext.apply(me, { | |
17 | title: gettext("Datacenter"), | |
18 | hstateid: 'dctab' | |
19 | }); | |
20 | ||
21 | if (caps.dc['Sys.Audit']) { | |
6d55c93e EK |
22 | me.items.push({ |
23 | title: gettext('Summary'), | |
24 | xtype: 'pveDcSummary', | |
25 | itemId: 'summary' | |
26 | }); | |
27 | ||
28 | me.items.push({ | |
29 | xtype: 'pveDcOptionView', | |
30 | title: gettext('Options'), | |
31 | itemId: 'options' | |
32 | }); | |
acf7653a DM |
33 | } |
34 | ||
35 | if (caps.storage['Datastore.Allocate'] || caps.dc['Sys.Audit']) { | |
36 | me.items.push({ | |
37 | xtype: 'pveStorageView', | |
38 | title: gettext('Storage'), | |
39 | itemId: 'storage' | |
40 | }); | |
41 | } | |
42 | ||
43 | if (caps.dc['Sys.Audit']) { | |
6d55c93e | 44 | me.items.push({ |
acf7653a DM |
45 | xtype: 'pveDcBackupView', |
46 | title: gettext('Backup'), | |
47 | itemId: 'backup' | |
48 | }); | |
49 | } | |
50 | ||
51 | me.items.push({ | |
52 | xtype: 'pveUserView', | |
53 | title: gettext('Users'), | |
54 | itemId: 'users' | |
55 | }); | |
56 | ||
57 | if (caps.dc['Sys.Audit']) { | |
6d55c93e | 58 | me.items.push({ |
acf7653a DM |
59 | xtype: 'pveGroupView', |
60 | title: gettext('Groups'), | |
61 | itemId: 'groups' | |
6d55c93e EK |
62 | }); |
63 | ||
64 | me.items.push({ | |
acf7653a DM |
65 | xtype: 'pvePoolView', |
66 | title: gettext('Pools'), | |
67 | itemId: 'pools' | |
6d55c93e EK |
68 | }); |
69 | ||
70 | me.items.push({ | |
acf7653a DM |
71 | xtype: 'pveACLView', |
72 | title: gettext('Permissions'), | |
73 | itemId: 'permissions' | |
6d55c93e EK |
74 | }); |
75 | ||
76 | me.items.push({ | |
acf7653a DM |
77 | xtype: 'pveRoleView', |
78 | title: gettext('Roles'), | |
79 | itemId: 'roles' | |
6d55c93e EK |
80 | }); |
81 | ||
82 | me.items.push({ | |
0aba2d04 EK |
83 | xtype: 'pveAuthView', |
84 | title: gettext('Authentication'), | |
acf7653a | 85 | itemId: 'domains' |
6d55c93e EK |
86 | }); |
87 | ||
88 | me.items.push({ | |
89 | // xtype: 'pveHAPanel', | |
90 | // title: 'HA', | |
91 | xtype: 'gridpanel', | |
92 | title: 'HATODO', | |
93 | phstateid: me.hstateid, | |
acf7653a | 94 | itemId: 'ha' |
6d55c93e EK |
95 | }); |
96 | ||
97 | me.items.push({ | |
85203d5b EK |
98 | xtype: 'pveFirewallPanel', |
99 | title: gettext('Firewall'), | |
acf7653a DM |
100 | base_url: '/cluster/firewall', |
101 | fwtype: 'dc', | |
102 | phstateid: me.hstateid, | |
103 | itemId: 'firewall' | |
6d55c93e | 104 | }); |
acf7653a DM |
105 | |
106 | me.items.push({ | |
107 | xtype: 'pveDcSupport', | |
108 | title: gettext('Support'), | |
109 | itemId: 'support' | |
110 | }); | |
111 | } | |
112 | ||
113 | me.callParent(); | |
114 | } | |
115 | }); |