Commit b93a7106 authored by Stefan Priebe's avatar Stefan Priebe Committed by Dietmar Maurer

Qemu CreateWizard preselect current node

Signed-off-by: 's avatarStefan Priebe <s.priebe@profihost.ag>
parent 1d4dc6a0
......@@ -290,6 +290,7 @@ Ext.define('PVE.StdWorkspace', {
workspace: me,
viewFilter: selview.getViewFilter()
};
PVE.curSelectedNode = n;
}
me.setContent(comp);
......
......@@ -5,6 +5,8 @@ Ext.define('PVE.form.NodeSelector', {
// invalidate nodes which are offline
onlineValidator: false,
selectCurNode: false,
initComponent: function() {
var me = this;
......@@ -77,6 +79,10 @@ Ext.define('PVE.form.NodeSelector', {
}
});
if (me.selectCurNode && PVE.curSelectedNode.data.node) {
me.value = PVE.curSelectedNode.data.node;
}
me.callParent();
}
});
\ No newline at end of file
});
......@@ -46,6 +46,7 @@ Ext.define('PVE.qemu.CreateWizard', {
{
xtype: 'PVE.form.NodeSelector',
name: 'nodename',
selectCurNode: true,
fieldLabel: gettext('Node'),
allowBlank: false,
onlineValidator: true,
......
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