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:
Emmanuel Kasper 2016-02-03 16:24:44 +01:00 committed by Dietmar Maurer
parent e7bc7f3192
commit fa94a9776a

View File

@ -121,7 +121,7 @@ Ext.define('PVE.FirewallRulePanel', {
});
}
me.column1.push([
me.column1.push(
{
xtype: 'displayfield',
fieldLabel: '',
@ -147,7 +147,7 @@ Ext.define('PVE.FirewallRulePanel', {
value: '',
fieldLabel: gettext('Destination')
}
]);
);
me.column2 = [
@ -587,7 +587,7 @@ Ext.define('PVE.FirewallRules', {
if (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 errors = record.data.errors;
@ -675,7 +675,7 @@ Ext.define('PVE.FirewallRules', {
});
}
columns.push([
columns.push(
{
header: gettext('Source'),
dataIndex: 'source',
@ -724,7 +724,7 @@ Ext.define('PVE.FirewallRules', {
return render_errors('comment', Ext.util.Format.htmlEncode(value), metaData, record);
}
}
]);
);
Ext.apply(me, {
store: store,