mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-5345: UI > Infrastructure > virtual routers > group by zone/pod/cluster/account > hide Upgrade Router to Use Newer Template action when upgrade is not required (i.e. all rouster under the zone/pod/cluster/account have latest version).
This commit is contained in:
parent
97620ae781
commit
25dcd8823d
|
|
@ -8426,7 +8426,8 @@
|
|||
|
||||
setTimeout(function() {
|
||||
args.response.success({
|
||||
data: args.context.routerGroupByZone[0]
|
||||
data: args.context.routerGroupByZone[0],
|
||||
actionFilter: routerGroupActionfilter
|
||||
})
|
||||
});
|
||||
}
|
||||
|
|
@ -8659,7 +8660,8 @@
|
|||
});
|
||||
setTimeout(function() {
|
||||
args.response.success({
|
||||
data: args.context.routerGroupByPod[0]
|
||||
data: args.context.routerGroupByPod[0],
|
||||
actionFilter: routerGroupActionfilter
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -8895,7 +8897,8 @@
|
|||
});
|
||||
setTimeout(function() {
|
||||
args.response.success({
|
||||
data: args.context.routerGroupByCluster[0]
|
||||
data: args.context.routerGroupByCluster[0],
|
||||
actionFilter: routerGroupActionfilter
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -9134,7 +9137,8 @@
|
|||
});
|
||||
setTimeout(function() {
|
||||
args.response.success({
|
||||
data: args.context.routerGroupByAccount[0]
|
||||
data: args.context.routerGroupByAccount[0],
|
||||
actionFilter: routerGroupActionfilter
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -18148,7 +18152,16 @@
|
|||
}
|
||||
return allowedActions;
|
||||
}
|
||||
|
||||
|
||||
var routerGroupActionfilter = function(args) {
|
||||
var jsonObj = args.context.item;
|
||||
var allowedActions = [];
|
||||
if (jsonObj.routerRequiresUpgrade > 0) {
|
||||
allowedActions.push("upgradeRouterToUseNewerTemplate");
|
||||
}
|
||||
return allowedActions;
|
||||
}
|
||||
|
||||
var bladeActionfilter = function(args) {
|
||||
var jsonObj = args.context.item;
|
||||
var allowedActions = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue