You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2014/01/09 23:54:31 UTC

git commit: updated refs/heads/4.3 to d11560d

Updated Branches:
  refs/heads/4.3 277b93c19 -> d11560d27


CLOUDSTACK-5557: UI > Network > Guest Network > IP Address > fix a bug that SourceNAT IP, VPC tier IP wrongly showed Configuration tab(firewall/portforwarding/loadbalancing).

SourceNAT IP, VPC tier IP should not show Configuration tab(firewall/portforwarding/loadbalancing).


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/d11560d2
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/d11560d2
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/d11560d2

Branch: refs/heads/4.3
Commit: d11560d27b2f41320d644c4dca3b98e632667621
Parents: 277b93c
Author: Jessica Wang <je...@citrix.com>
Authored: Thu Jan 9 14:53:56 2014 -0800
Committer: Jessica Wang <je...@citrix.com>
Committed: Thu Jan 9 14:53:56 2014 -0800

----------------------------------------------------------------------
 ui/scripts/network.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d11560d2/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 9eaf028..d352320 100755
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -2222,12 +2222,14 @@
                                 }
                             }
 
-                            if (ipAddress.vpcid && ipAddress.issourcenat) {
+                            if (ipAddress.vpcid || ipAddress.issourcenat) {
                                 disableIpRules = true;
                             }
 
-                            if (disableVpn) disabledTabs.push('vpn');
-                            if (disableIpRules) disabledTabs.push('ipRules');
+                            if (disableVpn) 
+                            	disabledTabs.push('vpn');
+                            if (disableIpRules) 
+                            	disabledTabs.push('ipRules');
 
                             return disabledTabs;
                         },