mirror of https://github.com/apache/cloudstack.git
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:
parent
326313e02e
commit
d5c2fabb52
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue