menu bug fix
parent
09360cbb85
commit
8ce2f2997f
|
|
@ -34,7 +34,9 @@ export class PagesMenuItemComponent {
|
|||
}
|
||||
|
||||
get parent(){
|
||||
return !this.current && this.pagesService.currentPage?.link.startsWith(this.item.link)
|
||||
return !this.current && this.pagesService.currentPage?.link.startsWith(
|
||||
this.item.link.substring( 0, this.item.link.lastIndexOf("/") + 1 )
|
||||
)
|
||||
}
|
||||
|
||||
get nav(){
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import {Subscription} from "rxjs";
|
|||
import {PagesService} from "@app/_services/pages.service";
|
||||
import {ListsService} from "@app/_services";
|
||||
import {Title} from "@angular/platform-browser";
|
||||
import { environment } from '@environments/environment';
|
||||
|
||||
|
||||
@Component({
|
||||
|
|
|
|||
Loading…
Reference in New Issue