From b27de95d71d2e2eead53fcccd6d653ff8ccd6230 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 14 Nov 2013 14:35:49 -0800 Subject: [PATCH] CLOUDSTACK-3154: UI > zone detail > remove VMware data center action > if API returns error, stop spinning wheel and show returned error text in a pop up dialog. --- ui/scripts/system.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 6062135813d..a211a7f2b60 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -6061,6 +6061,10 @@ args.response.success({ data: args.context.physicalResources[0] }); + }, + error: function(XMLHttpResponse) { + var errorMsg = parseXMLHttpResponse(XMLHttpResponse); + args.response.error(errorMsg); } }); }, @@ -16956,7 +16960,7 @@ var zoneActionfilter = function(args) { var jsonObj = args.context.item; var allowedActions = ['enableSwift']; - + if (jsonObj.vmwaredcId == null) allowedActions.push('addVmwareDc'); else