]> git.proxmox.com Git - proxmox-backup.git/blob - www/SystemConfiguration.js
ui: navigation: change traffic-control icon to rotated signal
[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 tools: [PBS.Utils.get_help_tool("sysadmin-network-configuration")],
10 items: [
11 {
12 title: gettext('Network/Time'),
13 itemId: 'network',
14 xtype: 'panel',
15 layout: {
16 type: 'vbox',
17 align: 'stretch',
18 multi: true,
19 },
20 defaults: {
21 collapsible: true,
22 animCollapse: false,
23 margin: '10 10 0 10',
24 },
25 items: [
26 {
27 title: gettext('Time'),
28 xtype: 'proxmoxNodeTimeView',
29 nodename: 'localhost',
30 },
31 {
32 title: gettext('DNS'),
33 xtype: 'proxmoxNodeDNSView',
34 nodename: 'localhost',
35 },
36 {
37 flex: 1,
38 minHeight: 200,
39 title: gettext('Network Interfaces'),
40 xtype: 'proxmoxNodeNetworkView',
41 showApplyBtn: true,
42 types: ['bond', 'bridge'],
43 nodename: 'localhost',
44 },
45 ],
46 },
47 {
48 title: gettext('Authentication'),
49 itemId: 'authentication',
50 xtype: 'panel',
51 layout: {
52 type: 'vbox',
53 align: 'stretch',
54 multi: true,
55 },
56 defaults: {
57 collapsible: true,
58 animCollapse: false,
59 margin: '10 10 0 10',
60 },
61 items: [
62 {
63 title: gettext('Webauthn'),
64 xtype: 'pbsWebauthnConfigView',
65 },
66 {
67 // FIXME: this is only a semi-OK place as long as there's only the http-proxy in there
68 title: gettext('HTTP proxy'),
69 xtype: 'pbsNodeOptionView',
70 },
71 ],
72 },
73 ],
74
75 initComponent: function() {
76 let me = this;
77
78 me.callParent();
79
80 let networktime = me.getComponent('network');
81 Ext.Array.forEach(networktime.query(), function(item) {
82 item.relayEvents(networktime, ['activate', 'deactivate', 'destroy']);
83 });
84
85 let authentication = me.getComponent('authentication');
86 Ext.Array.forEach(authentication.query(), function(item) {
87 item.relayEvents(authentication, ['activate', 'deactivate', 'destroy']);
88 });
89 },
90 });
91
92