From d5c2fabb5205916054207691b6e065a61bbddc2f Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 12 Dec 2013 16:05:12 -0800 Subject: [PATCH] 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). --- ui/scripts/system.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index d6a76d3c54a..f667c60cbcb 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");