RED-6713 view login url

This commit is contained in:
Dan Percic 2023-07-06 17:04:02 +03:00
parent f590b0d18c
commit ac06f8b89f
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { List, shareDistinctLast } from '@iqser/common-ui/lib/utils';
import { TenantsService } from '@iqser/common-ui/lib/tenants';
const isNavigationStart = event => event instanceof NavigationStart;
const isNavigationStart = (event: unknown): event is NavigationStart => event instanceof NavigationStart;
const isSearchScreen: (url: string) => boolean = url => url.includes('/search');
@Component({
@ -26,7 +26,7 @@ const isSearchScreen: (url: string) => boolean = url => url.includes('/search');
export class BaseScreenComponent {
readonly #navigationStart$ = this._router.events.pipe(
filter(isNavigationStart),
map((event: NavigationStart) => event.url),
map(event => event.url),
startWith(this._router.url),
shareDistinctLast(),
);

@ -1 +1 @@
Subproject commit a71e094e55efda38556f4a6e131051996f2dbdc1
Subproject commit 4ee4842f744cae6161e2f324648b353ae111d1e9