]>
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 x-fa-sdn-treelist',
191 expandedOnInit
: true,
194 xtype
: 'pveSDNZoneView',
196 title
: gettext('Zones'),
206 iconCls
: 'fa fa-network-wired x-fa-sdn-treelist',
210 xtype
: 'pveSDNOptions',
212 title
: gettext('Options'),
214 iconCls
: 'fa fa-gear',
215 itemId
: 'sdnoptions',
218 xtype
: 'pveDhcpTree',
220 title
: gettext('IPAM'),
222 iconCls
: 'fa fa-map-signs',
223 itemId
: 'sdnmappings',
227 if (Proxmox
.UserName
=== 'root@pam') {
229 xtype
: 'pveACMEClusterView',
231 iconCls
: 'fa fa-certificate',
237 xtype
: 'pveFirewallRules',
238 title
: gettext('Firewall'),
240 base_url
: '/cluster/firewall/rules',
241 list_refs_url
: '/cluster/firewall/refs',
242 iconCls
: 'fa fa-shield',
246 xtype
: 'pveFirewallOptions',
247 title
: gettext('Options'),
248 groups
: ['firewall'],
249 iconCls
: 'fa fa-gear',
250 base_url
: '/cluster/firewall/options',
251 onlineHelp
: 'pve_firewall_cluster_wide_setup',
253 itemId
: 'firewall-options',
256 xtype
: 'pveSecurityGroups',
257 title
: gettext('Security Group'),
258 groups
: ['firewall'],
259 iconCls
: 'fa fa-group',
260 itemId
: 'firewall-sg',
263 xtype
: 'pveFirewallAliases',
264 title
: gettext('Alias'),
265 groups
: ['firewall'],
266 iconCls
: 'fa fa-external-link',
267 base_url
: '/cluster/firewall/aliases',
268 itemId
: 'firewall-aliases',
273 groups
: ['firewall'],
274 iconCls
: 'fa fa-list-ol',
275 base_url
: '/cluster/firewall/ipset',
276 list_refs_url
: '/cluster/firewall/refs',
277 itemId
: 'firewall-ipset',
280 xtype
: 'pveMetricServerView',
281 title
: gettext('Metric Server'),
282 iconCls
: 'fa fa-bar-chart',
283 itemId
: 'metricservers',
284 onlineHelp
: 'external_metric_server',
288 if (caps
.mapping
['Mapping.Audit'] ||
289 caps
.mapping
['Mapping.Use'] ||
290 caps
.mapping
['Mapping.Modify']) {
294 onlineHelp
: 'resource_mapping',
295 title
: gettext('Resource Mappings'),
297 iconCls
: 'fa fa-folder-o',
309 xtype
: 'pveDcPCIMapView',
310 title
: gettext('PCI Devices'),
316 performCollapse
: false,
319 xtype
: 'pveDcUSBMapView',
320 title
: gettext('USB Devices'),
328 if (caps
.mapping
['Mapping.Audit'] ||
329 caps
.mapping
['Mapping.Use'] ||
330 caps
.mapping
['Mapping.Modify']) {
333 xtype
: 'pmxNotificationConfigView',
334 title
: gettext('Notifications'),
335 itemId
: 'notification-targets',
336 iconCls
: 'fa fa-bell-o',
337 baseUrl
: '/cluster/notifications',
342 if (caps
.dc
['Sys.Audit']) {
344 xtype
: 'pveDcSupport',
345 title
: gettext('Support'),
347 iconCls
: 'fa fa-comments-o',