From d5fcc6ef5a75544e36cddc8f730fd61197fb324b 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 ef08e7b12bb..2d0d80f6b3c 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -18632,7 +18632,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");