Merge Angular 16 Irish Monitor to develop #33
|
@ -180,7 +180,7 @@ export class EntityActionsComponent implements OnInit {
|
|||
isRouteAvailable(routeToCheck: string) {
|
||||
for (let i = 0; i < this.router.config.length; i++) {
|
||||
let routePath: string = this.router.config[i].path;
|
||||
if (routePath == routeToCheck) {
|
||||
if (routePath == routeToCheck || routeToCheck.split('/')[0] == routePath) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue