]> git.proxmox.com Git - pve-manager.git/blob - www/manager6/dc/Config.js
move onlineHelp into classes from definition
[pve-manager.git] / www / manager6 / dc / Config.js
1 /*
2 * Datacenter config panel, located in the center of the ViewPort after the Datacenter view is selected
3 */
4
5 Ext.define('PVE.dc.Config', {
6 extend: 'PVE.panel.Config',
7 alias: 'widget.PVE.dc.Config',
8
9 onlineHelp: 'pve_admin_guide',
10
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']) {
24 me.items.push({
25 title: gettext('Summary'),
26 xtype: 'pveDcSummary',
27 iconCls: 'fa fa-book',
28 itemId: 'summary'
29 });
30
31 me.items.push({
32 xtype: 'pveDcOptionView',
33 title: gettext('Options'),
34 iconCls: 'fa fa-gear',
35 itemId: 'options'
36 });
37 }
38
39 if (caps.storage['Datastore.Allocate'] || caps.dc['Sys.Audit']) {
40 me.items.push({
41 xtype: 'pveStorageView',
42 title: gettext('Storage'),
43 iconCls: 'fa fa-database',
44 itemId: 'storage'
45 });
46 }
47
48 if (caps.dc['Sys.Audit']) {
49 me.items.push({
50 xtype: 'pveDcBackupView',
51 iconCls: 'fa fa-floppy-o',
52 title: gettext('Backup'),
53 itemId: 'backup'
54 },
55 {
56 xtype: 'pveACLView',
57 title: gettext('Permissions'),
58 iconCls: 'fa fa-unlock',
59 itemId: 'permissions',
60 expandedOnInit: true
61 });
62 }
63
64 me.items.push({
65 xtype: 'pveUserView',
66 groups: ['permissions'],
67 iconCls: 'fa fa-user',
68 title: gettext('Users'),
69 itemId: 'users'
70 });
71
72 if (caps.dc['Sys.Audit']) {
73 me.items.push({
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 {
102 xtype: 'pveHAStatusView',
103 title: 'HA',
104 iconCls: 'fa fa-heartbeat',
105 itemId: 'ha'
106 },
107 {
108 title: gettext('Resources'),
109 groups: ['ha'],
110 iconCls: 'fa fa-th',
111 xtype: 'pveHAResourcesView',
112 itemId: 'resources'
113 },
114 {
115 title: gettext('Groups'),
116 groups: ['ha'],
117 xtype: 'pveHAGroupsView',
118 iconCls: 'fa fa-object-group',
119 itemId: 'ha-groups'
120 },
121 {
122 title: gettext('Fencing'),
123 groups: ['ha'],
124 iconCls: 'fa fa-bolt',
125 xtype: 'pveFencingView',
126 itemId: 'ha-fencing'
127 },
128 {
129 xtype: 'pveFirewallRules',
130 title: gettext('Firewall'),
131 allow_iface: true,
132 base_url: '/cluster/firewall/rules',
133 list_refs_url: '/cluster/firewall/refs',
134 iconCls: 'fa fa-shield',
135 itemId: 'firewall'
136 },
137 {
138 xtype: 'pveFirewallOptions',
139 title: gettext('Options'),
140 groups: ['firewall'],
141 iconCls: 'fa fa-gear',
142 base_url: '/cluster/firewall/options',
143 onlineHelp: 'pve_firewall_cluster_wide_setup',
144 fwtype: 'dc',
145 itemId: 'firewall-options'
146 },
147 {
148 xtype: 'pveSecurityGroups',
149 title: gettext('Security Group'),
150 groups: ['firewall'],
151 iconCls: 'fa fa-group',
152 itemId: 'firewall-sg'
153 },
154 {
155 xtype: 'pveFirewallAliases',
156 title: gettext('Alias'),
157 groups: ['firewall'],
158 iconCls: 'fa fa-external-link',
159 base_url: '/cluster/firewall/aliases',
160 itemId: 'firewall-aliases'
161 },
162 {
163 xtype: 'pveIPSet',
164 title: 'IPSet',
165 groups: ['firewall'],
166 iconCls: 'fa fa-list-ol',
167 base_url: '/cluster/firewall/ipset',
168 list_refs_url: '/cluster/firewall/refs',
169 itemId: 'firewall-ipset'
170 },
171 {
172 xtype: 'pveDcSupport',
173 title: gettext('Support'),
174 itemId: 'support',
175 iconCls: 'fa fa-comments-o'
176 });
177 }
178
179 me.callParent();
180 }
181 });