[angular-16-irish-monitor | DONE | CHANGED] Entity Actions: show Action in case the enabled route path (e.g /participate) uses loadChildren to load the rest of the path (e.g /direct-claim)

This commit is contained in:
argirok 2023-12-19 11:52:27 +02:00
parent e900c28318
commit 4922906bcd
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}