pmg-gui/js/SystemConfiguration.js
Dominik Csapak adc5c38553 fix (de)activate/destroy events for system configuration
relay the events to all children of the network panel,
and add the deactivate event to the options

this properly starts and stops the updatestores

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-11-10 17:29:30 +01:00

71 lines
1.4 KiB
JavaScript

/*global Proxmox*/
Ext.define('PMG.SystemConfiguration', {
extend: 'Ext.tab.Panel',
xtype: 'pmgSystemConfiguration',
title: gettext('Configuration') + ': ' + gettext('System'),
border: false,
scrollable: true,
defaults: { border: false },
items: [
{
title: gettext('Network/Time'),
itemId: 'network',
xtype: 'panel',
layout: {
type: 'vbox',
align: 'stretch',
multi: true
},
bodyPadding: '0 0 10 0',
defaults: {
collapsible: true,
animCollapse: false,
margin: '10 10 0 10'
},
items: [
{
flex: 1,
minHeight: 200,
title: gettext('Interfaces'),
xtype: 'proxmoxNodeNetworkView',
nodename: Proxmox.NodeName
},
{
title: gettext('DNS'),
xtype: 'proxmoxNodeDNSView',
nodename: Proxmox.NodeName
},
{
title: gettext('Time'),
xtype: 'proxmoxNodeTimeView',
nodename: Proxmox.NodeName
}
]
},
{
itemId: 'options',
title: gettext('Options'),
xtype: 'pmgSystemOptions'
},
{
itemId: 'backup',
xtype: 'pmgBackupRestore'
}
],
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']);
});
}
});