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).

This commit is contained in:
Jessica Wang 2013-12-12 16:05:12 -08:00
parent 523d9dc3c0
commit d5fcc6ef5a

View File

@ -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");