Skip to content

Commit d5fcc6e

Browse files
author
Jessica Wang
committed
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).
1 parent 523d9dc commit d5fcc6e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ui/scripts/system.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18632,7 +18632,9 @@
1863218632
var jsonObj = args.context.item;
1863318633
var allowedActions = [];
1863418634

18635-
allowedActions.push('upgradeRouterToUseNewerTemplate');
18635+
if(jsonObj.requiresupgrade == true) {
18636+
allowedActions.push('upgradeRouterToUseNewerTemplate');
18637+
}
1863618638

1863718639
if (jsonObj.state == 'Running') {
1863818640
allowedActions.push("stop");

0 commit comments

Comments
 (0)