]> git.proxmox.com Git - pmg-gui.git/blob - js/SystemConfiguration.js
configuration: options: adapt to new advanced statistic filter default
[pmg-gui.git] / js / SystemConfiguration.js
1
2 Ext.define('PMG.SystemConfiguration', {
3 extend: 'Ext.tab.Panel',
4 xtype: 'pmgSystemConfiguration',
5
6 title: gettext('Configuration') + ': ' + gettext('System'),
7 border: false,
8 scrollable: true,
9 defaults: { border: false },
10 items: [
11 {
12 title: gettext('Network/Time'),
13 itemId: 'network',
14 iconCls: 'fa fa-exchange',
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 title: gettext('Time'),
30 xtype: 'proxmoxNodeTimeView',
31 nodename: Proxmox.NodeName,
32 },
33 {
34 title: gettext('DNS'),
35 xtype: 'proxmoxNodeDNSView',
36 nodename: Proxmox.NodeName,
37 },
38 {
39 flex: 1,
40 minHeight: 200,
41 title: gettext('Interfaces'),
42 xtype: 'proxmoxNodeNetworkView',
43 types: ['bond'],
44 nodename: Proxmox.NodeName,
45 showApplyBtn: true,
46 },
47 ],
48 },
49 {
50 xtype: 'pmgSystemOptions',
51 itemId: 'options',
52 title: gettext('Options'),
53 iconCls: 'fa fa-cogs',
54 },
55 ],
56
57 initComponent: function() {
58 var me = this;
59
60 me.callParent();
61
62 var networktime = me.getComponent('network');
63 Ext.Array.forEach(networktime.query(), function(item) {
64 item.relayEvents(networktime, ['activate', 'deactivate', 'destroy']);
65 });
66 },
67 });
68
69