[pve-devel] [PATCH widget-toolkit 1/3] EditWindow: Change url to 'importdisk' for import

Dominic Jäger d.jaeger at proxmox.com
Tue Jul 7 12:04:10 CEST 2020


Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
---
 src/window/Edit.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/window/Edit.js b/src/window/Edit.js
index c165141..816d68f 100644
--- a/src/window/Edit.js
+++ b/src/window/Edit.js
@@ -134,6 +134,10 @@ Ext.define('Proxmox.window.Edit', {
 	    values = undefined;
 	}
 
+	if (me.isImport) {
+	    url = url.replace('config', 'importdisk');
+	}
+
 	Proxmox.Utils.API2Request({
 	    url: url,
 	    waitMsgTarget: me,
-- 
2.20.1





More information about the pve-devel mailing list