From bec829e12aa9d0a0636096d9381bc2eb6cb76b72 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 29 Dec 2011 17:00:39 -0800 Subject: [PATCH] cloudstack 3.0 new UI - (1) apply action filter to newly created primary storage in listView. (2) apply action filter to newly created secondary storage in listView. --- ui/scripts/system.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 10bed8d096e..2e34c51375e 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -7509,8 +7509,11 @@ url: createURL("createStoragePool" + array1.join("")), dataType: "json", success: function(json) { - var item = json.createstoragepoolresponse.storagepool[0]; - args.response.success({data: item}); + var item = json.createstoragepoolresponse.storagepool[0]; + args.response.success({ + actionFilter: primarystorageActionfilter, //Brian, actionfilter is not being applied here. Please fix widget code to apply actionFilter to the newly created object. + data: item + }); }, error: function(XMLHttpResponse) { var errorMsg = parseXMLHttpResponse(XMLHttpResponse); @@ -7906,8 +7909,11 @@ url: createURL("addSecondaryStorage&zoneId=" + zoneId + "&url=" + todb(url)), dataType: "json", success: function(json) { - var item = json.addsecondarystorageresponse.secondarystorage; - args.response.success({data:item}); + var item = json.addsecondarystorageresponse.secondarystorage; + args.response.success({ + actionFilter: secondarystorageActionfilter, //Brian, actionfilter is not being applied here. Please fix widget code to apply actionFilter to the newly created object. + data:item + }); }, error: function(XMLHttpResponse) { var errorMsg = parseXMLHttpResponse(XMLHttpResponse);