From c4a4c813baae5d1b7af711654fbdc399539beb3d Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 7 Oct 2010 17:05:23 -0700 Subject: [PATCH] new UI - IP address page - IP address used for source NAT purpose do not have release IP option. --- ui/new/scripts/cloud.core2.ipaddress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/new/scripts/cloud.core2.ipaddress.js b/ui/new/scripts/cloud.core2.ipaddress.js index 66e7fb76594..83965d17be5 100644 --- a/ui/new/scripts/cloud.core2.ipaddress.js +++ b/ui/new/scripts/cloud.core2.ipaddress.js @@ -242,7 +242,7 @@ function ipJsonToDetailsTab(ipObj) { $actionMenu.find("#action_list").empty(); var noAvailableActions = true; - if(isIpManageable(ipObj.domainid, ipObj.account) == true) { + if(isIpManageable(ipObj.domainid, ipObj.account) == true && ipObj.issourcenat != "true") { buildActionLinkForDetailsTab("Release IP", ipActionMap, $actionMenu, null); noAvailableActions = false; }