[pve-devel] [PATCH manager 1/3] Fix handling of failed API call verifyFeature()

Emmanuel Kasper e.kasper at proxmox.com
Mon Feb 6 19:03:25 CET 2017


This call can for instance fails when a source VM has references
to non existing storages.
---
 www/manager6/qemu/Clone.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/qemu/Clone.js b/www/manager6/qemu/Clone.js
index ce6e4f3..8a3b34a 100644
--- a/www/manager6/qemu/Clone.js
+++ b/www/manager6/qemu/Clone.js
@@ -124,7 +124,7 @@ Ext.define('PVE.window.Clone', {
 	    params: params,
 	    method: 'GET',
 	    failure: function(response, opts) {
-		me.submitBtn.setDisabled(false);
+		me.lookupReference('submitBtn').setDisabled(true);
 		Ext.Msg.alert('Error', response.htmlStatus);
 	    },
 	    success: function(response, options) {
-- 
2.1.4





More information about the pve-devel mailing list