|
@ -41,6 +41,7 @@ import { MatSelectModule } from '@angular/material/select'; |
|
|
import { RouterModule } from '@angular/router'; |
|
|
import { RouterModule } from '@angular/router'; |
|
|
import { Account, AssetClass, DataSource } from '@prisma/client'; |
|
|
import { Account, AssetClass, DataSource } from '@prisma/client'; |
|
|
import { differenceInYears } from 'date-fns'; |
|
|
import { differenceInYears } from 'date-fns'; |
|
|
|
|
|
import { isFunction } from 'lodash'; |
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
import { EMPTY, Observable, Subject, merge, of } from 'rxjs'; |
|
|
import { EMPTY, Observable, Subject, merge, of } from 'rxjs'; |
|
|
import { |
|
|
import { |
|
@ -627,6 +628,10 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit { |
|
|
|
|
|
|
|
|
const allRoutes = Object.values(internalRoutes) |
|
|
const allRoutes = Object.values(internalRoutes) |
|
|
.filter(({ excludeFromAssistant }) => { |
|
|
.filter(({ excludeFromAssistant }) => { |
|
|
|
|
|
if (isFunction(excludeFromAssistant)) { |
|
|
|
|
|
return excludeFromAssistant(this.user); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return !excludeFromAssistant; |
|
|
return !excludeFromAssistant; |
|
|
}) |
|
|
}) |
|
|
.reduce((acc, route) => { |
|
|
.reduce((acc, route) => { |
|
|