]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/dc/Config.js
2 * Datacenter config panel, located in the center of the ViewPort after the Datacenter view is selected
5 Ext
.define('PVE.dc.Config', {
6 extend
: 'PVE.panel.Config',
7 alias
: 'widget.PVE.dc.Config',
9 onlineHelp
: 'pve_admin_guide',
11 initComponent: function() {
14 var caps
= Ext
.state
.Manager
.get('GuiCap');
19 title
: gettext("Datacenter"),
23 if (caps
.dc
['Sys.Audit']) {
25 title
: gettext('Summary'),
26 xtype
: 'pveDcSummary',
27 iconCls
: 'fa fa-book',
31 xtype
: 'pmxNotesView',
32 title
: gettext('Notes'),
33 iconCls
: 'fa fa-sticky-note-o',
37 title
: gettext('Cluster'),
38 xtype
: 'pveClusterAdministration',
39 iconCls
: 'fa fa-server',
45 iconCls
: 'fa fa-ceph',
46 xtype
: 'pveNodeCephStatus',
49 xtype
: 'pveDcOptionView',
50 title
: gettext('Options'),
51 iconCls
: 'fa fa-gear',
56 if (caps
.storage
['Datastore.Allocate'] || caps
.dc
['Sys.Audit']) {
58 xtype
: 'pveStorageView',
59 title
: gettext('Storage'),
60 iconCls
: 'fa fa-database',
66 if (caps
.dc
['Sys.Audit']) {
68 xtype
: 'pveDcBackupView',
69 iconCls
: 'fa fa-floppy-o',
70 title
: gettext('Backup'),
74 xtype
: 'pveReplicaView',
75 iconCls
: 'fa fa-retweet',
76 title
: gettext('Replication'),
77 itemId
: 'replication',
81 title
: gettext('Permissions'),
82 iconCls
: 'fa fa-unlock',
83 itemId
: 'permissions',
90 groups
: ['permissions'],
91 iconCls
: 'fa fa-user',
92 title
: gettext('Users'),
97 xtype
: 'pveTokenView',
98 groups
: ['permissions'],
99 iconCls
: 'fa fa-user-o',
100 title
: gettext('API Tokens'),
106 title
: gettext('Two Factor'),
107 groups
: ['permissions'],
108 iconCls
: 'fa fa-key',
111 issuerName
: `Proxmox VE - ${PVE.ClusterName || Proxmox.NodeName}`,
114 if (caps
.dc
['Sys.Audit']) {
116 xtype
: 'pveGroupView',
117 title
: gettext('Groups'),
118 iconCls
: 'fa fa-users',
119 groups
: ['permissions'],
123 xtype
: 'pvePoolView',
124 title
: gettext('Pools'),
125 iconCls
: 'fa fa-tags',
126 groups
: ['permissions'],
130 xtype
: 'pveRoleView',
131 title
: gettext('Roles'),
132 iconCls
: 'fa fa-male',
133 groups
: ['permissions'],
137 title
: gettext('Realms'),
142 groups
: ['permissions'],
143 iconCls
: 'fa fa-address-book-o',
147 xtype
: 'pveAuthView',
152 xtype
: 'pveRealmSyncJobView',
153 title
: gettext('Realm Sync Jobs'),
163 xtype
: 'pveHAStatus',
165 iconCls
: 'fa fa-heartbeat',
169 title
: gettext('Groups'),
171 xtype
: 'pveHAGroupsView',
172 iconCls
: 'fa fa-object-group',
176 title
: gettext('Fencing'),
178 iconCls
: 'fa fa-bolt',
179 xtype
: 'pveFencingView',
180 itemId
: 'ha-fencing',
182 // always show on initial load, will be hiddea later if the SDN API calls don't exist,
183 // else it won't be shown at first if the user initially loads with DC selected
184 if (PVE
.SDNInfo
|| PVE
.SDNInfo
=== undefined) {
186 xtype
: 'pveSDNStatus',
187 title
: gettext('SDN'),
188 iconCls
: 'fa fa-sdn',
191 expandedOnInit
: true,
194 xtype
: 'pveSDNZoneView',
196 title
: gettext('Zones'),
206 iconCls
: 'fa fa-network-wired',
210 xtype
: 'pveSDNOptions',
212 title
: gettext('Options'),
214 iconCls
: 'fa fa-gear',
215 itemId
: 'sdnoptions',
219 if (Proxmox
.UserName
=== 'root@pam') {
221 xtype
: 'pveACMEClusterView',
223 iconCls
: 'fa fa-certificate',
229 xtype
: 'pveFirewallRules',
230 title
: gettext('Firewall'),
232 base_url
: '/cluster/firewall/rules',
233 list_refs_url
: '/cluster/firewall/refs',
234 iconCls
: 'fa fa-shield',
238 xtype
: 'pveFirewallOptions',
239 title
: gettext('Options'),
240 groups
: ['firewall'],
241 iconCls
: 'fa fa-gear',
242 base_url
: '/cluster/firewall/options',
243 onlineHelp
: 'pve_firewall_cluster_wide_setup',
245 itemId
: 'firewall-options',
248 xtype
: 'pveSecurityGroups',
249 title
: gettext('Security Group'),
250 groups
: ['firewall'],
251 iconCls
: 'fa fa-group',
252 itemId
: 'firewall-sg',
255 xtype
: 'pveFirewallAliases',
256 title
: gettext('Alias'),
257 groups
: ['firewall'],
258 iconCls
: 'fa fa-external-link',
259 base_url
: '/cluster/firewall/aliases',
260 itemId
: 'firewall-aliases',
265 groups
: ['firewall'],
266 iconCls
: 'fa fa-list-ol',
267 base_url
: '/cluster/firewall/ipset',
268 list_refs_url
: '/cluster/firewall/refs',
269 itemId
: 'firewall-ipset',
272 xtype
: 'pveMetricServerView',
273 title
: gettext('Metric Server'),
274 iconCls
: 'fa fa-bar-chart',
275 itemId
: 'metricservers',
276 onlineHelp
: 'external_metric_server',
280 if (caps
.mapping
['Mapping.Audit'] ||
281 caps
.mapping
['Mapping.Use'] ||
282 caps
.mapping
['Mapping.Modify']) {
286 onlineHelp
: 'resource_mapping',
287 title
: gettext('Resource Mappings'),
289 iconCls
: 'fa fa-folder-o',
301 xtype
: 'pveDcPCIMapView',
302 title
: gettext('PCI Devices'),
308 performCollapse
: false,
311 xtype
: 'pveDcUSBMapView',
312 title
: gettext('USB Devices'),
320 if (caps
.dc
['Sys.Audit']) {
323 xtype
: 'pveNotificationEvents',
324 title
: gettext('Notifications'),
325 onlineHelp
: 'notification_events',
326 iconCls
: 'fa fa-bell-o',
327 itemId
: 'notifications',
332 if (caps
.mapping
['Mapping.Audit'] ||
333 caps
.mapping
['Mapping.Use'] ||
334 caps
.mapping
['Mapping.Modify']) {
337 xtype
: 'pmxNotificationConfigView',
338 title
: gettext('Notification Targets'),
339 onlineHelp
: 'notification_targets',
340 itemId
: 'notification-targets',
341 iconCls
: 'fa fa-dot-circle-o',
342 baseUrl
: '/cluster/notifications',
343 groups
: ['notifications'],
348 if (caps
.dc
['Sys.Audit']) {
350 xtype
: 'pveDcSupport',
351 title
: gettext('Support'),
353 iconCls
: 'fa fa-comments-o',