mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 21:43:04 +00:00
92900: Move duplicate code to new InitService method
This commit is contained in:
@@ -67,12 +67,7 @@ export class ServerInitService extends InitService {
|
||||
this.initRouteListeners();
|
||||
this.themeService.listenForThemeChanges(false);
|
||||
|
||||
// wait for auth to be ready
|
||||
await this.store.pipe(
|
||||
select(isAuthenticationBlocking),
|
||||
distinctUntilChanged(),
|
||||
find((b: boolean) => b === false)
|
||||
).toPromise();
|
||||
await this.authenticationReady$().toPromise();
|
||||
|
||||
return true;
|
||||
};
|
||||
|
Reference in New Issue
Block a user