]>
Commit | Line | Data |
---|---|---|
b0ee976f DM |
1 | /*global Proxmox*/ |
2 | ||
3 | Ext.define('PBS.SystemConfiguration', { | |
4 | extend: 'Ext.tab.Panel', | |
5 | xtype: 'pbsSystemConfiguration', | |
6 | ||
7 | title: gettext('Configuration') + ': ' + gettext('System'), | |
63bd6a9f | 8 | border: true, |
b0ee976f DM |
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 | }, | |
b0ee976f DM |
21 | defaults: { |
22 | collapsible: true, | |
23 | animCollapse: false, | |
24 | margin: '10 10 0 10' | |
25 | }, | |
26 | items: [ | |
27 | { | |
7cebe5a1 TL |
28 | title: gettext('Time'), |
29 | xtype: 'proxmoxNodeTimeView', | |
b2b3485d | 30 | nodename: 'localhost' |
b0ee976f DM |
31 | }, |
32 | { | |
33 | title: gettext('DNS'), | |
34 | xtype: 'proxmoxNodeDNSView', | |
b2b3485d | 35 | nodename: 'localhost' |
b0ee976f DM |
36 | }, |
37 | { | |
7cebe5a1 TL |
38 | flex: 1, |
39 | minHeight: 200, | |
40 | title: gettext('Network Interfaces'), | |
41 | xtype: 'proxmoxNodeNetworkView', | |
42 | showApplyBtn: true, | |
43 | types: ['bond', 'bridge', 'vlan'], | |
b2b3485d | 44 | nodename: 'localhost' |
7cebe5a1 | 45 | }, |
b0ee976f DM |
46 | ] |
47 | // }, | |
48 | // { | |
49 | // itemId: 'options', | |
b2b3485d DM |
50 | // title: gettext('Options'), |
51 | // html: "TESWT" | |
b0ee976f DM |
52 | // xtype: 'pbsSystemOptions' |
53 | } | |
54 | ], | |
55 | ||
56 | initComponent: function() { | |
57 | var me = this; | |
58 | ||
59 | me.callParent(); | |
60 | ||
61 | var networktime = me.getComponent('network'); | |
62 | Ext.Array.forEach(networktime.query(), function(item) { | |
63 | item.relayEvents(networktime, [ 'activate', 'deactivate', 'destroy']); | |
64 | }); | |
65 | } | |
66 | }); | |
67 | ||
68 |