|
|
@ -67,13 +67,6 @@ export class MenuToggleComponent { |
|
|
toggleSectionActive(): boolean { |
|
|
toggleSectionActive(): boolean { |
|
|
if (this.collapsed) { |
|
|
if (this.collapsed) { |
|
|
return this.menuService.isActiveMenuSection(this.section); |
|
|
return this.menuService.isActiveMenuSection(this.section); |
|
|
/* let active = this.router.isActive(this.router.parseUrl(this.section.path), {paths: 'subset', queryParams: 'ignored', matrixParams: 'ignored', fragment: 'ignored'}); |
|
|
|
|
|
if (!active) { |
|
|
|
|
|
const found = this.section.pages.find(page => |
|
|
|
|
|
this.router.isActive(this.router.parseUrl(page.path), {paths: 'subset', queryParams: 'ignored', matrixParams: 'ignored', fragment: 'ignored'})); |
|
|
|
|
|
active = !!found; |
|
|
|
|
|
} |
|
|
|
|
|
return active;*/ |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|