From 4922906bcdc7813480bb462f1a1c6f85126520cc Mon Sep 17 00:00:00 2001 From: argirok Date: Tue, 19 Dec 2023 11:52:27 +0200 Subject: [PATCH] [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) --- utils/entity-actions/entity-actions.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/entity-actions/entity-actions.component.ts b/utils/entity-actions/entity-actions.component.ts index 96d7ea49..f2e07c77 100644 --- a/utils/entity-actions/entity-actions.component.ts +++ b/utils/entity-actions/entity-actions.component.ts @@ -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; } }