[pve-devel] [PATCH manager v3 3/7] ui: lxc/MPEdit: add selectFree toggle

Dominik Csapak d.csapak at proxmox.com
Tue Oct 5 13:28:59 CEST 2021


that sets the given vmconfig at the start and selects the first
free mpid

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/lxc/MPEdit.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/manager6/lxc/MPEdit.js b/www/manager6/lxc/MPEdit.js
index 2b4f8ebe..dba69cb4 100644
--- a/www/manager6/lxc/MPEdit.js
+++ b/www/manager6/lxc/MPEdit.js
@@ -149,6 +149,9 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
 		    view.filterMountOptions();
 		}
 	    }
+	    if (view.selectFree) {
+		view.setVMConfig(view.vmconfig);
+	    }
 	},
     },
 
-- 
2.30.2






More information about the pve-devel mailing list