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 2013/12/13 01:05:35 UTC

git commit: updated refs/heads/4.3 to d5c2fab

Updated Branches:
  refs/heads/4.3 326313e02 -> d5c2fabb5


CLOUDSTACK-5345: UI > Infrastructure > virtual routers > no grouping > hide Upgrade Router to Use Newer Template action when a router has latest version (i.e. does not require upgrade).


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

Branch: refs/heads/4.3
Commit: d5c2fabb5205916054207691b6e065a61bbddc2f
Parents: 326313e
Author: Jessica Wang <je...@apache.org>
Authored: Thu Dec 12 16:05:12 2013 -0800
Committer: Jessica Wang <je...@apache.org>
Committed: Thu Dec 12 16:05:24 2013 -0800

----------------------------------------------------------------------
 ui/scripts/system.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d5c2fabb/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index d6a76d3..f667c60 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -18073,7 +18073,9 @@
         var jsonObj = args.context.item;
         var allowedActions = [];
 
-        allowedActions.push('upgradeRouterToUseNewerTemplate');
+        if(jsonObj.requiresupgrade == true) {
+            allowedActions.push('upgradeRouterToUseNewerTemplate');
+        }
         
         if (jsonObj.state == 'Running') {
             allowedActions.push("stop");