]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/dc/Config.js
13ded12e88ab5c13745186e7e544dd7c8b473fb2
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
: 'pveHAStatus',
146 iconCls
: 'fa fa-heartbeat',
150 title
: gettext('Groups'),
152 xtype
: 'pveHAGroupsView',
153 iconCls
: 'fa fa-object-group',
157 title
: gettext('Fencing'),
159 iconCls
: 'fa fa-bolt',
160 xtype
: 'pveFencingView',
161 itemId
: 'ha-fencing',
163 // always show on initial load, will be hiddea later if the SDN API calls don't exist,
164 // else it won't be shown at first if the user initially loads with DC selected
165 if (PVE
.SDNInfo
|| PVE
.SDNInfo
=== undefined) {
167 xtype
: 'pveSDNStatus',
168 title
: gettext('SDN'),
169 iconCls
: 'fa fa-sdn',
172 expandedOnInit
: true,
175 xtype
: 'pveSDNZoneView',
177 title
: gettext('Zones'),
185 title
: gettext('Vnets'),
187 iconCls
: 'fa fa-network-wired',
191 xtype
: 'pveSDNOptions',
193 title
: gettext('Options'),
195 iconCls
: 'fa fa-gear',
196 itemId
: 'sdnoptions',
200 if (Proxmox
.UserName
=== 'root@pam') {
202 xtype
: 'pveACMEClusterView',
204 iconCls
: 'fa fa-certificate',
210 xtype
: 'pveFirewallRules',
211 title
: gettext('Firewall'),
213 base_url
: '/cluster/firewall/rules',
214 list_refs_url
: '/cluster/firewall/refs',
215 iconCls
: 'fa fa-shield',
219 xtype
: 'pveFirewallOptions',
220 title
: gettext('Options'),
221 groups
: ['firewall'],
222 iconCls
: 'fa fa-gear',
223 base_url
: '/cluster/firewall/options',
224 onlineHelp
: 'pve_firewall_cluster_wide_setup',
226 itemId
: 'firewall-options',
229 xtype
: 'pveSecurityGroups',
230 title
: gettext('Security Group'),
231 groups
: ['firewall'],
232 iconCls
: 'fa fa-group',
233 itemId
: 'firewall-sg',
236 xtype
: 'pveFirewallAliases',
237 title
: gettext('Alias'),
238 groups
: ['firewall'],
239 iconCls
: 'fa fa-external-link',
240 base_url
: '/cluster/firewall/aliases',
241 itemId
: 'firewall-aliases',
246 groups
: ['firewall'],
247 iconCls
: 'fa fa-list-ol',
248 base_url
: '/cluster/firewall/ipset',
249 list_refs_url
: '/cluster/firewall/refs',
250 itemId
: 'firewall-ipset',
253 xtype
: 'pveMetricServerView',
254 title
: gettext('Metric Server'),
255 iconCls
: 'fa fa-bar-chart',
256 itemId
: 'metricservers',
257 onlineHelp
: 'external_metric_server',
260 xtype
: 'pveDcSupport',
261 title
: gettext('Support'),
263 iconCls
: 'fa fa-comments-o',