mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 11:32:41 +00:00
ext6migrate: adapt the Checkbox column of the firewall panel to ExtJS6
API changes in ExtJS6 involved here: * 'checkchange' event passes now the record index instead of the whole record * record.fields is now an array of Field objects, before it was an Object
This commit is contained in:
parent
85203d5bea
commit
7a4c3133bc
@ -623,10 +623,11 @@ Ext.define('PVE.FirewallRules', {
|
|||||||
header: gettext('Enable'),
|
header: gettext('Enable'),
|
||||||
dataIndex: 'enable',
|
dataIndex: 'enable',
|
||||||
listeners: {
|
listeners: {
|
||||||
checkchange: function(column, record, checked) {
|
checkchange: function(column, recordIndex, checked) {
|
||||||
|
var record = me.getStore().getData().items[recordIndex];
|
||||||
record.commit();
|
record.commit();
|
||||||
var data = {};
|
var data = {};
|
||||||
record.fields.each(function(field) {
|
Ext.Array.forEach(record.getFields(), function(field) {
|
||||||
data[field.name] = record.get(field.name);
|
data[field.name] = record.get(field.name);
|
||||||
});
|
});
|
||||||
if (!me.allow_iface || !data.iface) {
|
if (!me.allow_iface || !data.iface) {
|
||||||
|
Loading…
Reference in New Issue
Block a user