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
523d9dc3c0
commit
d5fcc6ef5a
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue