[pve-devel] [PATCH manager v3 2/7] ui: lxc/MPEdit: fire diskidchange event

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


when the diskid changes

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

diff --git a/www/manager6/lxc/MPEdit.js b/www/manager6/lxc/MPEdit.js
index 64e57229..2b4f8ebe 100644
--- a/www/manager6/lxc/MPEdit.js
+++ b/www/manager6/lxc/MPEdit.js
@@ -110,6 +110,11 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
 	control: {
 	    'field[name=mpid]': {
 		change: function(field, value) {
+		    let me = this;
+		    let view = this.getView();
+		    if (view.confid !== 'rootfs') {
+			view.fireEvent('diskidchange', view, `mp${value}`);
+		    }
 		    field.validate();
 		},
 	    },
-- 
2.30.2






More information about the pve-devel mailing list