Commit f5bfe311 authored by Dietmar Maurer's avatar Dietmar Maurer

fix lxc crteate wizard

parent a3c6e044
...@@ -160,20 +160,14 @@ Ext.define('PVE.lxc.CreateWizard', { ...@@ -160,20 +160,14 @@ Ext.define('PVE.lxc.CreateWizard', {
] ]
}, },
{ {
xtype: 'inputpanel', xtype: 'pveLxcCPUInputPanel',
title: gettext('Resources'), title: gettext('CPU'),
items: [
{
xtype: 'pveLxcMemoryInputPanel',
title: gettext('Memory'),
insideWizard: true insideWizard: true
}, },
{ {
xtype: 'pveLxcCPUInputPanel', xtype: 'pveLxcMemoryInputPanel',
title: gettext('CPU'), title: gettext('Memory'),
insideWizard: true insideWizard: true
}
]
}, },
networkpanel, networkpanel,
{ {
......
...@@ -44,9 +44,7 @@ Ext.define('PVE.lxc.CPUInputPanel', { ...@@ -44,9 +44,7 @@ Ext.define('PVE.lxc.CPUInputPanel', {
initComponent : function() { initComponent : function() {
var me = this; var me = this;
Ext.apply(me, { var items = [
subject: gettext('CPU'),
items: [
{ {
xtype: 'numberfield', xtype: 'numberfield',
name: 'cpulimit', name: 'cpulimit',
...@@ -67,8 +65,13 @@ Ext.define('PVE.lxc.CPUInputPanel', { ...@@ -67,8 +65,13 @@ Ext.define('PVE.lxc.CPUInputPanel', {
labelWidth: labelWidth, labelWidth: labelWidth,
allowBlank: false allowBlank: false
} }
] ];
});
if (me.insideWizard) {
me.column1 = items;
} else {
me.items = items;
}
me.callParent(); me.callParent();
} }
...@@ -83,9 +86,7 @@ Ext.define('PVE.lxc.MemoryInputPanel', { ...@@ -83,9 +86,7 @@ Ext.define('PVE.lxc.MemoryInputPanel', {
initComponent : function() { initComponent : function() {
var me = this; var me = this;
Ext.apply(me, { var items = [
subject: gettext('Memory'),
items: [
{ {
xtype: 'numberfield', xtype: 'numberfield',
name: 'memory', name: 'memory',
...@@ -108,8 +109,13 @@ Ext.define('PVE.lxc.MemoryInputPanel', { ...@@ -108,8 +109,13 @@ Ext.define('PVE.lxc.MemoryInputPanel', {
labelWidth: labelWidth, labelWidth: labelWidth,
allowBlank: false allowBlank: false
} }
] ];
});
if (me.insideWizard) {
me.column1 = items;
} else {
me.items = items;
}
me.callParent(); me.callParent();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment