[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:
parent
e900c28318
commit
4922906bcd
|
@ -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