File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,19 +150,6 @@ export class MenuResolver implements Resolve<boolean> {
150150 ] ) . pipe ( take ( 1 ) ) . subscribe ( ( [ canViewUsage , canViewLogin , canViewWorkflow ] ) => {
151151 const menuList = [ ] ;
152152 if ( canViewUsage || canViewLogin || canViewWorkflow ) {
153- menuList . push (
154- {
155- id : 'statistics' ,
156- active : false ,
157- visible : true ,
158- index : 1 ,
159- model : {
160- type : MenuItemType . TEXT ,
161- text : 'menu.section.statistics'
162- } as TextMenuItemModel ,
163- }
164- ) ;
165-
166153 if ( canViewUsage ) {
167154 menuList . push ( {
168155 id : 'statistics_site' ,
@@ -204,6 +191,20 @@ export class MenuResolver implements Resolve<boolean> {
204191 } as LinkMenuItemModel
205192 } ) ;
206193 }
194+
195+ // the parent menu should be added after the children
196+ menuList . push (
197+ {
198+ id : 'statistics' ,
199+ active : false ,
200+ visible : true ,
201+ index : 1 ,
202+ model : {
203+ type : MenuItemType . TEXT ,
204+ text : 'menu.section.statistics'
205+ } as TextMenuItemModel ,
206+ }
207+ ) ;
207208 }
208209 menuList . forEach ( ( menuSection ) => this . menuService . addSection ( MenuID . PUBLIC , Object . assign ( menuSection , {
209210 shouldPersistOnRouteChange : true
You can’t perform that action at this time.
0 commit comments