RED-6713 view login url
This commit is contained in:
parent
f590b0d18c
commit
ac06f8b89f
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user