menu bug fix

master
Boris Voropaev 2023-11-30 16:46:06 +03:00
parent 09360cbb85
commit 8ce2f2997f
2 changed files with 3 additions and 2 deletions

View File

@ -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(){

View File

@ -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({