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


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to