proxmox-backup/www/SystemConfiguration.js
Thomas Lamprecht 7cebe5a1f4 ui: system config: reorder big panel to bottom
Gives a better look and feel if the flex'd big panel is at the bottom

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-05-25 16:41:54 +02:00

69 lines
1.3 KiB
JavaScript

/*global Proxmox*/
Ext.define('PBS.SystemConfiguration', {
extend: 'Ext.tab.Panel',
xtype: 'pbsSystemConfiguration',
title: gettext('Configuration') + ': ' + gettext('System'),
border: true,
scrollable: true,
defaults: { border: false },
items: [
{
title: gettext('Network/Time'),
itemId: 'network',
xtype: 'panel',
layout: {
type: 'vbox',
align: 'stretch',
multi: true
},
defaults: {
collapsible: true,
animCollapse: false,
margin: '10 10 0 10'
},
items: [
{
title: gettext('Time'),
xtype: 'proxmoxNodeTimeView',
nodename: 'localhost'
},
{
title: gettext('DNS'),
xtype: 'proxmoxNodeDNSView',
nodename: 'localhost'
},
{
flex: 1,
minHeight: 200,
title: gettext('Network Interfaces'),
xtype: 'proxmoxNodeNetworkView',
showApplyBtn: true,
types: ['bond', 'bridge', 'vlan'],
nodename: 'localhost'
},
]
// },
// {
// itemId: 'options',
// title: gettext('Options'),
// html: "TESWT"
// xtype: 'pbsSystemOptions'
}
],
initComponent: function() {
var me = this;
me.callParent();
var networktime = me.getComponent('network');
Ext.Array.forEach(networktime.query(), function(item) {
item.relayEvents(networktime, [ 'activate', 'deactivate', 'destroy']);
});
}
});