Skip to content

Commit 6239447

Browse files
author
Jessica Wang
committed
CLOUDSTACK-7731: UI > Infrastructure > Virtual Routers > group by XXXXXXX view > listView > detailView > add View All link > show read-only text "group by zone/pod/cluster/account" in select view area.
1 parent 7004deb commit 6239447

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

‎ui/scripts/system.js‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9394,11 +9394,16 @@
93949394
label: 'label.select-view',
93959395
preFilter: function(args) {
93969396
//Only clicking ViewAll Link("view all Virtual Routers") in "Virtual Routers group by XXXXXXX" detailView will have "routerGroupByXXXXXXX" included in args.context
9397-
if (("routerGroupByZone" in args.context) || ("routerGroupByPod" in args.context) || ("routerGroupByCluster" in args.context) || ("routerGroupByAccount" in args.context)) {
9398-
return ["routerNoGroup"];
9399-
}
9400-
else {
9401-
return ["routerNoGroup", "routerGroupByZone", "routerGroupByPod", "routerGroupByCluster", "routerGroupByAccount"];
9397+
if ("routerGroupByZone" in args.context) {
9398+
return ["routerGroupByZone"]; // read-only (i.e. text "group by Zone")
9399+
} else if ( "routerGroupByPod" in args.context) {
9400+
return ["routerGroupByPod"]; // read-only (i.e. text "group by Pod")
9401+
} else if ("routerGroupByCluster" in args.context) {
9402+
return ["routerGroupByCluster"]; // read-only (i.e. text "group by Cluster")
9403+
} else if ("routerGroupByAccount" in args.context) {
9404+
return ["routerGroupByAccount"]; // read-only (i.e. text "group by Account")
9405+
} else {
9406+
return ["routerNoGroup", "routerGroupByZone", "routerGroupByPod", "routerGroupByCluster", "routerGroupByAccount"]; //editable dropdown
94029407
}
94039408
}
94049409
},

0 commit comments

Comments
 (0)