]> git.proxmox.com Git - pve-manager.git/blob - www/manager6/dc/Config.js
add replication to stateprovider dictionary
[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 onlineHelp: 'pve_admin_guide',
10
11 initComponent: function() {
12 var me = this;
13
14 var caps = Ext.state.Manager.get('GuiCap');
15
16 me.items = [];
17
18 Ext.apply(me, {
19 title: gettext("Datacenter"),
20 hstateid: 'dctab'
21 });
22
23 if (caps.dc['Sys.Audit']) {
24 me.items.push({
25 title: gettext('Summary'),
26 xtype: 'pveDcSummary',
27 iconCls: 'fa fa-book',
28 itemId: 'summary'
29 });
30
31 me.items.push({
32 xtype: 'pveDcOptionView',
33 title: gettext('Options'),
34 iconCls: 'fa fa-gear',
35 itemId: 'options'
36 });
37 }
38
39 if (caps.storage['Datastore.Allocate'] || caps.dc['Sys.Audit']) {
40 me.items.push({
41 xtype: 'pveStorageView',
42 title: gettext('Storage'),
43 iconCls: 'fa fa-database',
44 itemId: 'storage'
45 });
46 }
47
48 if (caps.dc['Sys.Audit']) {
49 me.items.push({
50 xtype: 'pveDcBackupView',
51 iconCls: 'fa fa-floppy-o',
52 title: gettext('Backup'),
53 itemId: 'backup'
54 },
55 {
56 xtype: 'pveReplicaView',
57 iconCls: 'fa fa-retweet',
58 title: gettext('Replication'),
59 itemId: 'replication'
60 },
61 {
62 xtype: 'pveACLView',
63 title: gettext('Permissions'),
64 iconCls: 'fa fa-unlock',
65 itemId: 'permissions',
66 expandedOnInit: true
67 });
68 }
69
70 me.items.push({
71 xtype: 'pveUserView',
72 groups: ['permissions'],
73 iconCls: 'fa fa-user',
74 title: gettext('Users'),
75 itemId: 'users'
76 });
77
78 if (caps.dc['Sys.Audit']) {
79 me.items.push({
80 xtype: 'pveGroupView',
81 title: gettext('Groups'),
82 iconCls: 'fa fa-users',
83 groups: ['permissions'],
84 itemId: 'groups'
85 },
86 {
87 xtype: 'pvePoolView',
88 title: gettext('Pools'),
89 iconCls: 'fa fa-tags',
90 groups: ['permissions'],
91 itemId: 'pools'
92 },
93 {
94 xtype: 'pveRoleView',
95 title: gettext('Roles'),
96 iconCls: 'fa fa-male',
97 groups: ['permissions'],
98 itemId: 'roles'
99 },
100 {
101 xtype: 'pveAuthView',
102 title: gettext('Authentication'),
103 groups: ['permissions'],
104 iconCls: 'fa fa-key',
105 itemId: 'domains'
106 },
107 {
108 xtype: 'pveHAStatus',
109 title: 'HA',
110 iconCls: 'fa fa-heartbeat',
111 itemId: 'ha'
112 },
113 {
114 title: gettext('Groups'),
115 groups: ['ha'],
116 xtype: 'pveHAGroupsView',
117 iconCls: 'fa fa-object-group',
118 itemId: 'ha-groups'
119 },
120 {
121 title: gettext('Fencing'),
122 groups: ['ha'],
123 iconCls: 'fa fa-bolt',
124 xtype: 'pveFencingView',
125 itemId: 'ha-fencing'
126 },
127 {
128 xtype: 'pveFirewallRules',
129 title: gettext('Firewall'),
130 allow_iface: true,
131 base_url: '/cluster/firewall/rules',
132 list_refs_url: '/cluster/firewall/refs',
133 iconCls: 'fa fa-shield',
134 itemId: 'firewall'
135 },
136 {
137 xtype: 'pveFirewallOptions',
138 title: gettext('Options'),
139 groups: ['firewall'],
140 iconCls: 'fa fa-gear',
141 base_url: '/cluster/firewall/options',
142 onlineHelp: 'pve_firewall_cluster_wide_setup',
143 fwtype: 'dc',
144 itemId: 'firewall-options'
145 },
146 {
147 xtype: 'pveSecurityGroups',
148 title: gettext('Security Group'),
149 groups: ['firewall'],
150 iconCls: 'fa fa-group',
151 itemId: 'firewall-sg'
152 },
153 {
154 xtype: 'pveFirewallAliases',
155 title: gettext('Alias'),
156 groups: ['firewall'],
157 iconCls: 'fa fa-external-link',
158 base_url: '/cluster/firewall/aliases',
159 itemId: 'firewall-aliases'
160 },
161 {
162 xtype: 'pveIPSet',
163 title: 'IPSet',
164 groups: ['firewall'],
165 iconCls: 'fa fa-list-ol',
166 base_url: '/cluster/firewall/ipset',
167 list_refs_url: '/cluster/firewall/refs',
168 itemId: 'firewall-ipset'
169 },
170 {
171 xtype: 'pveDcSupport',
172 title: gettext('Support'),
173 itemId: 'support',
174 iconCls: 'fa fa-comments-o'
175 });
176 }
177
178 me.callParent();
179 }
180 });