ext6migrate: last fixes for firewall

listen to 'activate' event is needed because of framework changes,
similar to c0b3df6e34

ext6migrate: listen to 'activate' events for panels inside a tabpanel
This commit is contained in:
Emmanuel Kasper 2016-02-08 14:29:54 +01:00 committed by Dietmar Maurer
parent cee050e2a1
commit 734b37950e
2 changed files with 5 additions and 12 deletions

View File

@ -1,16 +1,9 @@
Ext.define('PVE.form.FirewallPolicySelector', { Ext.define('PVE.form.FirewallPolicySelector', {
extend: 'PVE.form.KVComboBox', extend: 'PVE.form.KVComboBox',
alias: ['widget.pveFirewallPolicySelector'], alias: ['widget.pveFirewallPolicySelector'],
comboItems: [
initComponent: function() {
var me = this;
me.data = [
['ACCEPT', 'ACCEPT'], ['ACCEPT', 'ACCEPT'],
['REJECT', 'REJECT'], ['REJECT', 'REJECT'],
[ 'DROP', 'DROP'] [ 'DROP', 'DROP']
]; ]
me.callParent();
}
}); });

View File

@ -94,7 +94,7 @@ Ext.define('PVE.FirewallOptions', {
xtype: 'pveKVComboBox', xtype: 'pveKVComboBox',
name: name, name: name,
fieldLabel: name, fieldLabel: name,
data: [['nolog', 'nolog'], ['info', 'info'], ['err', 'err'], comboItems: [['nolog', 'nolog'], ['info', 'info'], ['err', 'err'],
['warning', 'warning'], ['crit', 'crit'], ['alert', 'alert'], ['warning', 'warning'], ['crit', 'crit'], ['alert', 'alert'],
['emerg', 'emerg'], ['debug', 'debug']] ['emerg', 'emerg'], ['debug', 'debug']]
} }
@ -226,6 +226,6 @@ Ext.define('PVE.FirewallOptions', {
me.callParent(); me.callParent();
me.on('show', reload); me.on('activate', reload);
} }
}); });