]> git.proxmox.com Git - proxmox-backup.git/blame - www/SystemConfiguration.js
tfa: add webauthn configuration API entry points
[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 },
f4f9a503 9 tools: [PBS.Utils.get_help_tool("sysadmin-network-configuration")],
b0ee976f
DM
10 items: [
11 {
12 title: gettext('Network/Time'),
13 itemId: 'network',
14 xtype: 'panel',
15 layout: {
16 type: 'vbox',
17 align: 'stretch',
6ab77df3 18 multi: true,
b0ee976f 19 },
b0ee976f
DM
20 defaults: {
21 collapsible: true,
22 animCollapse: false,
6ab77df3 23 margin: '10 10 0 10',
b0ee976f
DM
24 },
25 items: [
26 {
7cebe5a1
TL
27 title: gettext('Time'),
28 xtype: 'proxmoxNodeTimeView',
6ab77df3 29 nodename: 'localhost',
b0ee976f
DM
30 },
31 {
32 title: gettext('DNS'),
33 xtype: 'proxmoxNodeDNSView',
6ab77df3 34 nodename: 'localhost',
b0ee976f
DM
35 },
36 {
7cebe5a1
TL
37 flex: 1,
38 minHeight: 200,
39 title: gettext('Network Interfaces'),
40 xtype: 'proxmoxNodeNetworkView',
41 showApplyBtn: true,
0c80f4fa 42 types: ['bond', 'bridge'],
6ab77df3 43 nodename: 'localhost',
7cebe5a1 44 },
6ab77df3
TL
45 ],
46 },
b0ee976f
DM
47 ],
48
49 initComponent: function() {
6ab77df3 50 let me = this;
b0ee976f
DM
51
52 me.callParent();
53
6ab77df3 54 let networktime = me.getComponent('network');
b0ee976f 55 Ext.Array.forEach(networktime.query(), function(item) {
6ab77df3 56 item.relayEvents(networktime, ['activate', 'deactivate', 'destroy']);
b0ee976f 57 });
6ab77df3 58 },
b0ee976f
DM
59});
60
61