]> git.proxmox.com Git - pve-manager.git/blame - www/manager6/dc/Config.js
merge ha resources into the ha status panel
[pve-manager.git] / www / manager6 / dc / Config.js
CommitLineData
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
5Ext.define('PVE.dc.Config', {
6 extend: 'PVE.panel.Config',
7 alias: 'widget.PVE.dc.Config',
8
c8802a60 9 onlineHelp: 'pve_admin_guide',
983277c9 10
acf7653a
DM
11 initComponent: function() {
12 var me = this;
13
14 var caps = Ext.state.Manager.get('GuiCap');
15
16 me.items = [];
17
18 Ext.apply(me, {
19 title: gettext("Datacenter"),
20 hstateid: 'dctab'
21 });
22
23 if (caps.dc['Sys.Audit']) {
6d55c93e
EK
24 me.items.push({
25 title: gettext('Summary'),
26 xtype: 'pveDcSummary',
2af89b7b 27 iconCls: 'fa fa-book',
6d55c93e 28 itemId: 'summary'
2af89b7b 29 });
6d55c93e
EK
30
31 me.items.push({
ba93a9c6 32 xtype: 'pveDcOptionView',
6d55c93e 33 title: gettext('Options'),
2af89b7b 34 iconCls: 'fa fa-gear',
6d55c93e 35 itemId: 'options'
2af89b7b 36 });
acf7653a
DM
37 }
38
39 if (caps.storage['Datastore.Allocate'] || caps.dc['Sys.Audit']) {
40 me.items.push({
41 xtype: 'pveStorageView',
42 title: gettext('Storage'),
2af89b7b 43 iconCls: 'fa fa-database',
acf7653a
DM
44 itemId: 'storage'
45 });
46 }
47
48 if (caps.dc['Sys.Audit']) {
2af89b7b 49 me.items.push({
acf7653a 50 xtype: 'pveDcBackupView',
2af89b7b 51 iconCls: 'fa fa-floppy-o',
acf7653a
DM
52 title: gettext('Backup'),
53 itemId: 'backup'
2af89b7b
DC
54 },
55 {
56 xtype: 'pveACLView',
57 title: gettext('Permissions'),
58 iconCls: 'fa fa-unlock',
59 itemId: 'permissions',
60 expandedOnInit: true
acf7653a
DM
61 });
62 }
63
64 me.items.push({
65 xtype: 'pveUserView',
2af89b7b
DC
66 groups: ['permissions'],
67 iconCls: 'fa fa-user',
acf7653a
DM
68 title: gettext('Users'),
69 itemId: 'users'
70 });
71
72 if (caps.dc['Sys.Audit']) {
6d55c93e 73 me.items.push({
2af89b7b
DC
74 xtype: 'pveGroupView',
75 title: gettext('Groups'),
76 iconCls: 'fa fa-users',
77 groups: ['permissions'],
78 itemId: 'groups'
79 },
80 {
81 xtype: 'pvePoolView',
82 title: gettext('Pools'),
83 iconCls: 'fa fa-tags',
84 groups: ['permissions'],
85 itemId: 'pools'
86 },
87 {
88 xtype: 'pveRoleView',
89 title: gettext('Roles'),
90 iconCls: 'fa fa-male',
91 groups: ['permissions'],
92 itemId: 'roles'
93 },
94 {
95 xtype: 'pveAuthView',
96 title: gettext('Authentication'),
97 groups: ['permissions'],
98 iconCls: 'fa fa-key',
99 itemId: 'domains'
100 },
101 {
8a58f554 102 xtype: 'pveHAStatus',
2af89b7b
DC
103 title: 'HA',
104 iconCls: 'fa fa-heartbeat',
105 itemId: 'ha'
106 },
2af89b7b
DC
107 {
108 title: gettext('Groups'),
109 groups: ['ha'],
110 xtype: 'pveHAGroupsView',
111 iconCls: 'fa fa-object-group',
112 itemId: 'ha-groups'
113 },
114 {
115 title: gettext('Fencing'),
116 groups: ['ha'],
117 iconCls: 'fa fa-bolt',
118 xtype: 'pveFencingView',
119 itemId: 'ha-fencing'
120 },
121 {
122 xtype: 'pveFirewallRules',
123 title: gettext('Firewall'),
124 allow_iface: true,
125 base_url: '/cluster/firewall/rules',
126 list_refs_url: '/cluster/firewall/refs',
127 iconCls: 'fa fa-shield',
128 itemId: 'firewall'
129 },
130 {
131 xtype: 'pveFirewallOptions',
132 title: gettext('Options'),
133 groups: ['firewall'],
134 iconCls: 'fa fa-gear',
135 base_url: '/cluster/firewall/options',
c8802a60 136 onlineHelp: 'pve_firewall_cluster_wide_setup',
2af89b7b
DC
137 fwtype: 'dc',
138 itemId: 'firewall-options'
139 },
140 {
141 xtype: 'pveSecurityGroups',
142 title: gettext('Security Group'),
143 groups: ['firewall'],
144 iconCls: 'fa fa-group',
145 itemId: 'firewall-sg'
146 },
147 {
148 xtype: 'pveFirewallAliases',
149 title: gettext('Alias'),
150 groups: ['firewall'],
151 iconCls: 'fa fa-external-link',
152 base_url: '/cluster/firewall/aliases',
153 itemId: 'firewall-aliases'
154 },
155 {
156 xtype: 'pveIPSet',
157 title: 'IPSet',
158 groups: ['firewall'],
159 iconCls: 'fa fa-list-ol',
160 base_url: '/cluster/firewall/ipset',
161 list_refs_url: '/cluster/firewall/refs',
162 itemId: 'firewall-ipset'
163 },
164 {
acf7653a
DM
165 xtype: 'pveDcSupport',
166 title: gettext('Support'),
2af89b7b
DC
167 itemId: 'support',
168 iconCls: 'fa fa-comments-o'
acf7653a
DM
169 });
170 }
171
172 me.callParent();
173 }
174});