]> git.proxmox.com Git - pmg-gui.git/blob - js/SystemConfiguration.js
Dashboard.js - fix subscription status for single node installations
[pmg-gui.git] / js / SystemConfiguration.js
1 /*global Proxmox*/
2
3 Ext.define('PMG.SystemConfiguration', {
4 extend: 'Ext.tab.Panel',
5 xtype: 'pmgSystemConfiguration',
6
7 title: gettext('Configuration') + ': ' + gettext('System'),
8 border: false,
9 scrollable: true,
10 defaults: { border: false },
11 items: [
12 {
13 title: gettext('Network/Time'),
14 itemId: 'network',
15 xtype: 'panel',
16 layout: {
17 type: 'vbox',
18 align: 'stretch',
19 multi: true
20 },
21 bodyPadding: '0 0 10 0',
22 defaults: {
23 collapsible: true,
24 animCollapse: false,
25 margin: '10 10 0 10'
26 },
27 items: [
28 {
29 flex: 1,
30 minHeight: 200,
31 title: gettext('Interfaces'),
32 xtype: 'proxmoxNodeNetworkView',
33 nodename: Proxmox.NodeName
34 },
35 {
36 title: gettext('DNS'),
37 xtype: 'proxmoxNodeDNSView',
38 nodename: Proxmox.NodeName
39 },
40 {
41 title: gettext('Time'),
42 xtype: 'proxmoxNodeTimeView',
43 nodename: Proxmox.NodeName
44 }
45 ]
46 },
47 {
48 itemId: 'options',
49 title: gettext('Options'),
50 xtype: 'pmgSystemOptions'
51 },
52 {
53 itemId: 'backup',
54 xtype: 'pmgBackupRestore'
55 }
56 ],
57
58 initComponent: function() {
59 var me = this;
60
61 me.callParent();
62
63 var networktime = me.getComponent('network');
64 Ext.Array.forEach(networktime.query(), function(item) {
65 item.relayEvents(networktime, [ 'activate', 'deactivate', 'destroy']);
66 });
67 }
68 });
69
70