]> git.proxmox.com Git - proxmox-backup.git/blob - www/SystemConfiguration.js
src/config/network.rs: make it compatible with pve
[proxmox-backup.git] / www / SystemConfiguration.js
1 /*global Proxmox*/
2
3 Ext.define('PBS.SystemConfiguration', {
4 extend: 'Ext.tab.Panel',
5 xtype: 'pbsSystemConfiguration',
6
7 title: gettext('Configuration') + ': ' + gettext('System'),
8 border: true,
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 showApplyBtn: true,
34 types: ['bond', 'bridge', 'vlan'],
35 nodename: 'localhost'
36 },
37 {
38 title: gettext('DNS'),
39 xtype: 'proxmoxNodeDNSView',
40 nodename: 'localhost'
41 },
42 {
43 title: gettext('Time'),
44 xtype: 'proxmoxNodeTimeView',
45 nodename: 'localhost'
46 }
47 ]
48 // },
49 // {
50 // itemId: 'options',
51 // title: gettext('Options'),
52 // html: "TESWT"
53 // xtype: 'pbsSystemOptions'
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