]> git.proxmox.com Git - pve-manager.git/blob - www/manager6/dc/Config.js
rename manager5 to manager6
[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 xtype: 'gridpanel',
86 title: 'AuthenTODO',
87 itemId: 'domains'
88 });
89
90 me.items.push({
91 // xtype: 'pveHAPanel',
92 // title: 'HA',
93 xtype: 'gridpanel',
94 title: 'HATODO',
95 phstateid: me.hstateid,
96 itemId: 'ha'
97 });
98
99 me.items.push({
100 // xtype: 'pveFirewallPanel',
101 // title: gettext('Firewall'),
102 xtype: 'gridpanel',
103 title: 'FireTODO',
104 base_url: '/cluster/firewall',
105 fwtype: 'dc',
106 phstateid: me.hstateid,
107 itemId: 'firewall'
108 });
109
110 me.items.push({
111 xtype: 'pveDcSupport',
112 title: gettext('Support'),
113 itemId: 'support'
114 });
115 }
116
117 me.callParent();
118 }
119 });