]> git.proxmox.com Git - proxmox-backup.git/blob - www/SystemConfiguration.js
api: disks: cleanup use statement
[proxmox-backup.git] / www / SystemConfiguration.js
1 Ext.define('PBS.SystemConfiguration', {
2 extend: 'Ext.tab.Panel',
3 xtype: 'pbsSystemConfiguration',
4
5 title: gettext('Configuration') + ': ' + gettext('System'),
6 border: true,
7 scrollable: true,
8 defaults: { border: false },
9 items: [
10 {
11 title: gettext('Network/Time'),
12 itemId: 'network',
13 xtype: 'panel',
14 layout: {
15 type: 'vbox',
16 align: 'stretch',
17 multi: true,
18 },
19 defaults: {
20 collapsible: true,
21 animCollapse: false,
22 margin: '10 10 0 10',
23 },
24 items: [
25 {
26 title: gettext('Time'),
27 xtype: 'proxmoxNodeTimeView',
28 nodename: 'localhost',
29 },
30 {
31 title: gettext('DNS'),
32 xtype: 'proxmoxNodeDNSView',
33 nodename: 'localhost',
34 },
35 {
36 flex: 1,
37 minHeight: 200,
38 title: gettext('Network Interfaces'),
39 xtype: 'proxmoxNodeNetworkView',
40 showApplyBtn: true,
41 types: ['bond', 'bridge'],
42 nodename: 'localhost',
43 },
44 ],
45 },
46 ],
47
48 initComponent: function() {
49 let me = this;
50
51 me.callParent();
52
53 let networktime = me.getComponent('network');
54 Ext.Array.forEach(networktime.query(), function(item) {
55 item.relayEvents(networktime, ['activate', 'deactivate', 'destroy']);
56 });
57 },
58 });
59
60