mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 20:15:55 +00:00
ext6migrate: push array elements separately
This fix is needed for buttons and columns to be properly displayed when loading the component.
This commit is contained in:
parent
e7bc7f3192
commit
fa94a9776a
@ -121,7 +121,7 @@ Ext.define('PVE.FirewallRulePanel', {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
me.column1.push([
|
me.column1.push(
|
||||||
{
|
{
|
||||||
xtype: 'displayfield',
|
xtype: 'displayfield',
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
@ -147,7 +147,7 @@ Ext.define('PVE.FirewallRulePanel', {
|
|||||||
value: '',
|
value: '',
|
||||||
fieldLabel: gettext('Destination')
|
fieldLabel: gettext('Destination')
|
||||||
}
|
}
|
||||||
]);
|
);
|
||||||
|
|
||||||
|
|
||||||
me.column2 = [
|
me.column2 = [
|
||||||
@ -587,7 +587,7 @@ Ext.define('PVE.FirewallRules', {
|
|||||||
if (me.groupBtn) {
|
if (me.groupBtn) {
|
||||||
tbar.push(me.groupBtn);
|
tbar.push(me.groupBtn);
|
||||||
}
|
}
|
||||||
tbar.push([ me.removeBtn, me.editBtn ]);
|
tbar.push(me.removeBtn, me.editBtn);
|
||||||
|
|
||||||
var render_errors = function(name, value, metaData, record) {
|
var render_errors = function(name, value, metaData, record) {
|
||||||
var errors = record.data.errors;
|
var errors = record.data.errors;
|
||||||
@ -675,7 +675,7 @@ Ext.define('PVE.FirewallRules', {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
columns.push([
|
columns.push(
|
||||||
{
|
{
|
||||||
header: gettext('Source'),
|
header: gettext('Source'),
|
||||||
dataIndex: 'source',
|
dataIndex: 'source',
|
||||||
@ -724,7 +724,7 @@ Ext.define('PVE.FirewallRules', {
|
|||||||
return render_errors('comment', Ext.util.Format.htmlEncode(value), metaData, record);
|
return render_errors('comment', Ext.util.Format.htmlEncode(value), metaData, record);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]);
|
);
|
||||||
|
|
||||||
Ext.apply(me, {
|
Ext.apply(me, {
|
||||||
store: store,
|
store: store,
|
||||||
|
Loading…
Reference in New Issue
Block a user