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', {
extend: 'PVE.form.KVComboBox',
alias: ['widget.pveFirewallPolicySelector'],
initComponent: function() {
var me = this;
me.data = [
comboItems: [
['ACCEPT', 'ACCEPT'],
['REJECT', 'REJECT'],
[ 'DROP', 'DROP']
];
me.callParent();
}
]
});

View File

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