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 },
|
2020-11-10 12:38:50 +00:00
|
|
|
tools: [PBS.Utils.get_help_tool("sysadmin-network-configuration")],
|
2019-01-22 10:48:00 +00:00
|
|
|
items: [
|
|
|
|
{
|
|
|
|
xtype: 'panel',
|
2022-01-12 11:38:45 +00:00
|
|
|
title: gettext(' Network/Time'),
|
|
|
|
itemId: 'network',
|
2022-01-12 11:41:16 +00:00
|
|
|
iconCls: 'fa fa-exchange',
|
2019-01-22 10:48:00 +00:00
|
|
|
layout: {
|
|
|
|
type: 'vbox',
|
|
|
|
align: 'stretch',
|
2020-09-25 16:40:03 +00:00
|
|
|
multi: true,
|
2019-01-22 10:48:00 +00:00
|
|
|
},
|
|
|
|
defaults: {
|
|
|
|
collapsible: true,
|
|
|
|
animCollapse: false,
|
2020-09-25 16:40:03 +00:00
|
|
|
margin: '10 10 0 10',
|
2019-01-22 10:48:00 +00:00
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{
|
2020-05-25 14:41:04 +00:00
|
|
|
xtype: 'proxmoxNodeTimeView',
|
2022-01-12 11:38:45 +00:00
|
|
|
title: gettext('Time'),
|
2020-09-25 16:40:03 +00:00
|
|
|
nodename: 'localhost',
|
2019-01-22 10:48:00 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
xtype: 'proxmoxNodeDNSView',
|
2022-01-12 11:38:45 +00:00
|
|
|
title: gettext('DNS'),
|
2020-09-25 16:40:03 +00:00
|
|
|
nodename: 'localhost',
|
2019-01-22 10:48:00 +00:00
|
|
|
},
|
|
|
|
{
|
2022-01-12 11:38:45 +00:00
|
|
|
xtype: 'proxmoxNodeNetworkView',
|
|
|
|
title: gettext('Network Interfaces'),
|
2020-05-25 14:41:04 +00:00
|
|
|
flex: 1,
|
|
|
|
minHeight: 200,
|
|
|
|
showApplyBtn: true,
|
2020-10-07 11:32:18 +00:00
|
|
|
types: ['bond', 'bridge'],
|
2020-09-25 16:40:03 +00:00
|
|
|
nodename: 'localhost',
|
2020-05-25 14:41:04 +00:00
|
|
|
},
|
2020-09-25 16:40:03 +00:00
|
|
|
],
|
|
|
|
},
|
2021-01-15 10:06:18 +00:00
|
|
|
{
|
2022-01-03 09:04:56 +00:00
|
|
|
xtype: 'panel',
|
2022-01-12 11:36:36 +00:00
|
|
|
title: gettext('Other'),
|
|
|
|
itemId: 'other-options',
|
2022-01-12 11:41:16 +00:00
|
|
|
iconCls: 'fa fa-sliders',
|
2022-01-03 09:04:56 +00:00
|
|
|
layout: {
|
|
|
|
type: 'vbox',
|
|
|
|
align: 'stretch',
|
|
|
|
multi: true,
|
|
|
|
},
|
|
|
|
defaults: {
|
|
|
|
collapsible: true,
|
|
|
|
animCollapse: false,
|
|
|
|
margin: '10 10 0 10',
|
|
|
|
},
|
|
|
|
items: [
|
2021-05-21 16:19:51 +00:00
|
|
|
{
|
2022-01-03 09:04:56 +00:00
|
|
|
title: gettext('General'),
|
2021-05-21 16:19:51 +00:00
|
|
|
xtype: 'pbsNodeOptionView',
|
|
|
|
},
|
2022-01-12 11:36:36 +00:00
|
|
|
{
|
|
|
|
title: gettext('WebAuthn TFA'),
|
|
|
|
xtype: 'pbsWebauthnConfigView',
|
|
|
|
},
|
2021-01-15 10:06:18 +00:00
|
|
|
],
|
|
|
|
},
|
2019-01-22 10:48:00 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
initComponent: function() {
|
2020-09-25 16:40:03 +00:00
|
|
|
let me = this;
|
2019-01-22 10:48:00 +00:00
|
|
|
|
|
|
|
me.callParent();
|
|
|
|
|
2020-09-25 16:40:03 +00:00
|
|
|
let networktime = me.getComponent('network');
|
2022-01-12 11:38:45 +00:00
|
|
|
networktime.query()?.forEach(el => el.relayEvents(networktime, ['activate', 'deactivate', 'destroy']));
|
2021-01-15 10:06:18 +00:00
|
|
|
|
2022-01-12 11:36:36 +00:00
|
|
|
let options = me.getComponent('other-options');
|
2022-01-12 11:38:45 +00:00
|
|
|
options.query()?.forEach(el => el.relayEvents(options, ['activate', 'deactivate', 'destroy']));
|
2020-09-25 16:40:03 +00:00
|
|
|
},
|
2019-01-22 10:48:00 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|