]> git.proxmox.com Git - proxmox-backup.git/blame - www/SystemConfiguration.js
tools/logrotate: fix compression logic
[proxmox-backup.git] / www / SystemConfiguration.js
CommitLineData
b0ee976f
DM
1Ext.define('PBS.SystemConfiguration', {
2 extend: 'Ext.tab.Panel',
3 xtype: 'pbsSystemConfiguration',
4
5 title: gettext('Configuration') + ': ' + gettext('System'),
63bd6a9f 6 border: true,
b0ee976f
DM
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',
6ab77df3 17 multi: true,
b0ee976f 18 },
b0ee976f
DM
19 defaults: {
20 collapsible: true,
21 animCollapse: false,
6ab77df3 22 margin: '10 10 0 10',
b0ee976f
DM
23 },
24 items: [
25 {
7cebe5a1
TL
26 title: gettext('Time'),
27 xtype: 'proxmoxNodeTimeView',
6ab77df3 28 nodename: 'localhost',
b0ee976f
DM
29 },
30 {
31 title: gettext('DNS'),
32 xtype: 'proxmoxNodeDNSView',
6ab77df3 33 nodename: 'localhost',
b0ee976f
DM
34 },
35 {
7cebe5a1
TL
36 flex: 1,
37 minHeight: 200,
38 title: gettext('Network Interfaces'),
39 xtype: 'proxmoxNodeNetworkView',
40 showApplyBtn: true,
0c80f4fa 41 types: ['bond', 'bridge'],
6ab77df3 42 nodename: 'localhost',
7cebe5a1 43 },
6ab77df3
TL
44 ],
45 },
b0ee976f
DM
46 ],
47
48 initComponent: function() {
6ab77df3 49 let me = this;
b0ee976f
DM
50
51 me.callParent();
52
6ab77df3 53 let networktime = me.getComponent('network');
b0ee976f 54 Ext.Array.forEach(networktime.query(), function(item) {
6ab77df3 55 item.relayEvents(networktime, ['activate', 'deactivate', 'destroy']);
b0ee976f 56 });
6ab77df3 57 },
b0ee976f
DM
58});
59
60