mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 12:44:56 +00:00
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:
parent
cee050e2a1
commit
734b37950e
@ -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();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user