]>
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 xtype
: 'pveAuthView',
138 title
: gettext('Realms'),
139 groups
: ['permissions'],
140 iconCls
: 'fa fa-address-book-o',
144 xtype
: 'pveRealmSyncJobView',
145 title
: gettext('Realm Sync'),
146 groups
: ['permissions'],
147 iconCls
: 'fa fa-refresh',
148 itemId
: 'realmsyncjobs',
151 xtype
: 'pveHAStatus',
153 iconCls
: 'fa fa-heartbeat',
157 title
: gettext('Groups'),
159 xtype
: 'pveHAGroupsView',
160 iconCls
: 'fa fa-object-group',
164 title
: gettext('Fencing'),
166 iconCls
: 'fa fa-bolt',
167 xtype
: 'pveFencingView',
168 itemId
: 'ha-fencing',
170 // always show on initial load, will be hiddea later if the SDN API calls don't exist,
171 // else it won't be shown at first if the user initially loads with DC selected
172 if (PVE
.SDNInfo
|| PVE
.SDNInfo
=== undefined) {
174 xtype
: 'pveSDNStatus',
175 title
: gettext('SDN'),
176 iconCls
: 'fa fa-sdn',
179 expandedOnInit
: true,
182 xtype
: 'pveSDNZoneView',
184 title
: gettext('Zones'),
192 title
: gettext('Vnets'),
194 iconCls
: 'fa fa-network-wired',
198 xtype
: 'pveSDNOptions',
200 title
: gettext('Options'),
202 iconCls
: 'fa fa-gear',
203 itemId
: 'sdnoptions',
207 if (Proxmox
.UserName
=== 'root@pam') {
209 xtype
: 'pveACMEClusterView',
211 iconCls
: 'fa fa-certificate',
217 xtype
: 'pveFirewallRules',
218 title
: gettext('Firewall'),
220 base_url
: '/cluster/firewall/rules',
221 list_refs_url
: '/cluster/firewall/refs',
222 iconCls
: 'fa fa-shield',
226 xtype
: 'pveFirewallOptions',
227 title
: gettext('Options'),
228 groups
: ['firewall'],
229 iconCls
: 'fa fa-gear',
230 base_url
: '/cluster/firewall/options',
231 onlineHelp
: 'pve_firewall_cluster_wide_setup',
233 itemId
: 'firewall-options',
236 xtype
: 'pveSecurityGroups',
237 title
: gettext('Security Group'),
238 groups
: ['firewall'],
239 iconCls
: 'fa fa-group',
240 itemId
: 'firewall-sg',
243 xtype
: 'pveFirewallAliases',
244 title
: gettext('Alias'),
245 groups
: ['firewall'],
246 iconCls
: 'fa fa-external-link',
247 base_url
: '/cluster/firewall/aliases',
248 itemId
: 'firewall-aliases',
253 groups
: ['firewall'],
254 iconCls
: 'fa fa-list-ol',
255 base_url
: '/cluster/firewall/ipset',
256 list_refs_url
: '/cluster/firewall/refs',
257 itemId
: 'firewall-ipset',
260 xtype
: 'pveMetricServerView',
261 title
: gettext('Metric Server'),
262 iconCls
: 'fa fa-bar-chart',
263 itemId
: 'metricservers',
264 onlineHelp
: 'external_metric_server',
267 xtype
: 'pveDcSupport',
268 title
: gettext('Support'),
270 iconCls
: 'fa fa-comments-o',