From 0057ea5c88fae8f2d5563d11383bca32d3b56964 Mon Sep 17 00:00:00 2001 From: Emmanuel Kasper Date: Mon, 6 Feb 2017 19:03:25 +0100 Subject: [PATCH] Fix handling of failed API call verifyFeature() 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 ce6e4f31..8a3b34a2 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) {