mirror of https://github.com/apache/cloudstack.git
bug 6940: IP Address page - Enable Static NAT option is only available for IP that is manageable.
This commit is contained in:
parent
0890eff9f6
commit
b2bcb9e6e6
|
|
@ -738,12 +738,11 @@ function ipJsonToDetailsTab() {
|
|||
if(ipObj.isstaticnat == true) {
|
||||
|
||||
}
|
||||
else { //ipObj.isstaticnat == false
|
||||
buildActionLinkForTab("Enable Static NAT", ipActionMap, $actionMenu, $midmenuItem1, $thisTab);
|
||||
noAvailableActions = false;
|
||||
|
||||
else { //ipObj.isstaticnat == false
|
||||
if(isIpManageable(ipObj.domainid, ipObj.account) == true && ipObj.issourcenat != true) {
|
||||
buildActionLinkForTab("Release IP", ipActionMap, $actionMenu, $midmenuItem1, $thisTab);
|
||||
buildActionLinkForTab("Release IP", ipActionMap, $actionMenu, $midmenuItem1, $thisTab);
|
||||
buildActionLinkForTab("Enable Static NAT", ipActionMap, $actionMenu, $midmenuItem1, $thisTab);
|
||||
noAvailableActions = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue