proxmox-backup/www/SystemConfiguration.js

90 lines
1.9 KiB
JavaScript
Raw Normal View History

2019-01-22 10:48:00 +00:00
Ext.define('PBS.SystemConfiguration', {
extend: 'Ext.tab.Panel',
xtype: 'pbsSystemConfiguration',
title: gettext('Configuration') + ': ' + gettext('System'),
2019-04-11 10:18:04 +00:00
border: true,
2019-01-22 10:48:00 +00:00
scrollable: true,
defaults: { border: false },
tools: [PBS.Utils.get_help_tool("sysadmin-network-configuration")],
2019-01-22 10:48:00 +00:00
items: [
{
xtype: 'panel',
title: gettext(' Network/Time'),
itemId: 'network',
iconCls: 'fa fa-exchange',
2019-01-22 10:48:00 +00:00
layout: {
type: 'vbox',
align: 'stretch',
multi: true,
2019-01-22 10:48:00 +00:00
},
defaults: {
collapsible: true,
animCollapse: false,
margin: '10 10 0 10',
2019-01-22 10:48:00 +00:00
},
items: [
{
xtype: 'proxmoxNodeTimeView',
title: gettext('Time'),
nodename: 'localhost',
2019-01-22 10:48:00 +00:00
},
{
xtype: 'proxmoxNodeDNSView',
title: gettext('DNS'),
nodename: 'localhost',
2019-01-22 10:48:00 +00:00
},
{
xtype: 'proxmoxNodeNetworkView',
title: gettext('Network Interfaces'),
flex: 1,
minHeight: 200,
showApplyBtn: true,
types: ['bond', 'bridge'],
nodename: 'localhost',
},
],
},
{
xtype: 'panel',
title: gettext('Other'),
itemId: 'other-options',
iconCls: 'fa fa-sliders',
layout: {
type: 'vbox',
align: 'stretch',
multi: true,
},
defaults: {
collapsible: true,
animCollapse: false,
margin: '10 10 0 10',
},
items: [
{
title: gettext('General'),
xtype: 'pbsNodeOptionView',
},
{
title: gettext('WebAuthn TFA'),
xtype: 'pbsWebauthnConfigView',
},
],
},
2019-01-22 10:48:00 +00:00
],
initComponent: function() {
let me = this;
2019-01-22 10:48:00 +00:00
me.callParent();
let networktime = me.getComponent('network');
networktime.query()?.forEach(el => el.relayEvents(networktime, ['activate', 'deactivate', 'destroy']));
let options = me.getComponent('other-options');
options.query()?.forEach(el => el.relayEvents(options, ['activate', 'deactivate', 'destroy']));
},
2019-01-22 10:48:00 +00:00
});