Fix handling of failed API call verifyFeature()

This call can for instance fails when a source VM has references
to non existing storages.
This commit is contained in:
Emmanuel Kasper 2017-02-06 19:03:25 +01:00 committed by Fabian Grünbichler
parent 3a2402368f
commit 0057ea5c88

View File

@ -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) {