proxmox-backup/www/SystemConfiguration.js
Thomas Lamprecht e5dc7fef05 ui: system config: fix leading whitespace in translation
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-10-29 13:18:53 +01:00

97 lines
2.0 KiB
JavaScript

Ext.define('PBS.SystemConfiguration', {
extend: 'Ext.tab.Panel',
xtype: 'pbsSystemConfiguration',
title: gettext('Configuration') + ': ' + gettext('System'),
border: true,
defaults: { border: false },
tools: [PBS.Utils.get_help_tool("sysadmin-network-configuration")],
items: [
{
xtype: 'panel',
title: gettext('Network/Time'),
itemId: 'network',
iconCls: 'fa fa-exchange',
layout: {
type: 'vbox',
align: 'stretch',
multi: true,
},
scrollable: true,
defaults: {
collapsible: true,
animCollapse: false,
margin: '7 10 3 10',
},
items: [
{
xtype: 'proxmoxNodeTimeView',
title: gettext('Time'),
nodename: 'localhost',
},
{
xtype: 'proxmoxNodeDNSView',
title: gettext('DNS'),
nodename: 'localhost',
},
{
xtype: 'proxmoxNodeNetworkView',
title: gettext('Network Interfaces'),
flex: 1,
minHeight: 200,
showApplyBtn: true,
types: ['bond', 'bridge'],
nodename: 'localhost',
},
],
},
{
title: gettext('Metric Server'),
iconCls: 'fa fa-bar-chart',
xtype: 'pbsMetricServerView',
itemId: 'metrics',
},
{
xtype: 'panel',
title: gettext('Other'),
itemId: 'other-options',
iconCls: 'fa fa-sliders',
layout: {
type: 'vbox',
align: 'stretch',
multi: true,
},
scrollable: true,
defaults: {
collapsible: true,
animCollapse: false,
margin: '7 10 3 10',
},
items: [
{
title: gettext('General'),
xtype: 'pbsNodeOptionView',
},
{
title: gettext('WebAuthn TFA'),
xtype: 'pbsWebauthnConfigView',
},
],
},
],
initComponent: function() {
let me = this;
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']));
},
});