]> git.proxmox.com Git - pve-manager.git/blob - www/manager6/dc/Config.js
Enable HA datacenter panel
[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 initComponent: function() {
10 var me = this;
11
12 var caps = Ext.state.Manager.get('GuiCap');
13
14 me.items = [];
15
16 Ext.apply(me, {
17 title: gettext("Datacenter"),
18 hstateid: 'dctab'
19 });
20
21 if (caps.dc['Sys.Audit']) {
22 me.items.push({
23 title: gettext('Summary'),
24 xtype: 'pveDcSummary',
25 itemId: 'summary'
26 });
27
28 me.items.push({
29 xtype: 'pveDcOptionView',
30 title: gettext('Options'),
31 itemId: 'options'
32 });
33 }
34
35 if (caps.storage['Datastore.Allocate'] || caps.dc['Sys.Audit']) {
36 me.items.push({
37 xtype: 'pveStorageView',
38 title: gettext('Storage'),
39 itemId: 'storage'
40 });
41 }
42
43 if (caps.dc['Sys.Audit']) {
44 me.items.push({
45 xtype: 'pveDcBackupView',
46 title: gettext('Backup'),
47 itemId: 'backup'
48 });
49 }
50
51 me.items.push({
52 xtype: 'pveUserView',
53 title: gettext('Users'),
54 itemId: 'users'
55 });
56
57 if (caps.dc['Sys.Audit']) {
58 me.items.push({
59 xtype: 'pveGroupView',
60 title: gettext('Groups'),
61 itemId: 'groups'
62 });
63
64 me.items.push({
65 xtype: 'pvePoolView',
66 title: gettext('Pools'),
67 itemId: 'pools'
68 });
69
70 me.items.push({
71 xtype: 'pveACLView',
72 title: gettext('Permissions'),
73 itemId: 'permissions'
74 });
75
76 me.items.push({
77 xtype: 'pveRoleView',
78 title: gettext('Roles'),
79 itemId: 'roles'
80 });
81
82 me.items.push({
83 xtype: 'pveAuthView',
84 title: gettext('Authentication'),
85 itemId: 'domains'
86 });
87
88 me.items.push({
89 xtype: 'pveHAPanel',
90 title: 'HA',
91 phstateid: me.hstateid,
92 itemId: 'ha'
93 });
94
95 me.items.push({
96 xtype: 'pveFirewallPanel',
97 title: gettext('Firewall'),
98 base_url: '/cluster/firewall',
99 fwtype: 'dc',
100 phstateid: me.hstateid,
101 itemId: 'firewall'
102 });
103
104 me.items.push({
105 xtype: 'pveDcSupport',
106 title: gettext('Support'),
107 itemId: 'support'
108 });
109 }
110
111 me.callParent();
112 }
113 });