CLOUDSTACK-7731: UI > Infrastructure > Virtual Routers > group by XXXXXXX view > listView > detailView > add View All link > not show "group by XXXXXXX" in select view dropdown.

This commit is contained in:
Jessica Wang 2014-10-15 17:02:21 -07:00
parent f8cbd6ad46
commit 5e165d499e

View File

@ -9391,7 +9391,16 @@
subsections: {
virtualRouters: {
sectionSelect: {
label: 'label.select-view'
label: 'label.select-view',
preFilter: function(args) {
//Only clicking ViewAll Link("view all Virtual Routers") in "Virtual Routers group by XXXXXXX" detailView will have "routerGroupByXXXXXXX" included in args.context
if (("routerGroupByZone" in args.context) || ("routerGroupByPod" in args.context) || ("routerGroupByCluster" in args.context) || ("routerGroupByAccount" in args.context)) {
return ["routerNoGroup"];
}
else {
return ["routerNoGroup", "routerGroupByZone", "routerGroupByPod", "routerGroupByCluster", "routerGroupByAccount"];
}
}
},
sections: {
routerNoGroup: {