[pve-devel] [PATCH manager 3/5] use nodename parameter to preselect the node in the wizard
Dominik Csapak
d.csapak at proxmox.com
Fri Apr 14 10:09:22 CEST 2017
this will be used for the ndoe right-click-menu
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/lxc/CreateWizard.js | 3 ++-
www/manager6/qemu/CreateWizard.js | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/www/manager6/lxc/CreateWizard.js b/www/manager6/lxc/CreateWizard.js
index 40b73000..c2f16a1a 100644
--- a/www/manager6/lxc/CreateWizard.js
+++ b/www/manager6/lxc/CreateWizard.js
@@ -183,7 +183,8 @@ Ext.define('PVE.lxc.CreateWizard', {
{
xtype: 'pveNodeSelector',
name: 'nodename',
- selectCurNode: true,
+ selectCurNode: !me.nodename,
+ preferredValue: me.nodename,
fieldLabel: gettext('Node'),
allowBlank: false,
onlineValidator: true,
diff --git a/www/manager6/qemu/CreateWizard.js b/www/manager6/qemu/CreateWizard.js
index 30bf8878..42de6ce0 100644
--- a/www/manager6/qemu/CreateWizard.js
+++ b/www/manager6/qemu/CreateWizard.js
@@ -47,7 +47,8 @@ Ext.define('PVE.qemu.CreateWizard', {
{
xtype: 'pveNodeSelector',
name: 'nodename',
- selectCurNode: true,
+ selectCurNode: !me.nodename,
+ preferredValue: me.nodename,
fieldLabel: gettext('Node'),
allowBlank: false,
onlineValidator: true,
--
2.11.0
More information about the pve-devel
mailing list