proxmox-backup/www/SystemConfiguration.js

114 lines
2.3 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: [
{
title: gettext('Network/Time'),
itemId: 'network',
xtype: 'panel',
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: [
{
title: gettext('Time'),
xtype: 'proxmoxNodeTimeView',
nodename: 'localhost',
2019-01-22 10:48:00 +00:00
},
{
title: gettext('DNS'),
xtype: 'proxmoxNodeDNSView',
nodename: 'localhost',
2019-01-22 10:48:00 +00:00
},
{
flex: 1,
minHeight: 200,
title: gettext('Network Interfaces'),
xtype: 'proxmoxNodeNetworkView',
showApplyBtn: true,
types: ['bond', 'bridge'],
nodename: 'localhost',
},
],
},
{
title: gettext('Authentication'),
itemId: 'authentication',
xtype: 'panel',
layout: {
type: 'vbox',
align: 'stretch',
multi: true,
},
defaults: {
collapsible: true,
animCollapse: false,
margin: '10 10 0 10',
},
items: [
{
title: gettext('Webauthn'),
xtype: 'pbsWebauthnConfigView',
},
],
},
{
title: gettext('Options'),
itemId: 'options',
xtype: 'panel',
layout: {
type: 'vbox',
align: 'stretch',
multi: true,
},
defaults: {
collapsible: true,
animCollapse: false,
margin: '10 10 0 10',
},
items: [
{
title: gettext('General'),
xtype: 'pbsNodeOptionView',
},
],
},
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');
2019-01-22 10:48:00 +00:00
Ext.Array.forEach(networktime.query(), function(item) {
item.relayEvents(networktime, ['activate', 'deactivate', 'destroy']);
2019-01-22 10:48:00 +00:00
});
let authentication = me.getComponent('authentication');
Ext.Array.forEach(authentication.query(), function(item) {
item.relayEvents(authentication, ['activate', 'deactivate', 'destroy']);
});
let options = me.getComponent('options');
Ext.Array.forEach(options.query(), function(item) {
item.relayEvents(options, ['activate', 'deactivate', 'destroy']);
});
},
2019-01-22 10:48:00 +00:00
});