remove circular dependencies

This commit is contained in:
Art Lowel
2020-08-28 11:34:17 +02:00
parent cc618ebadd
commit 21e8879f77
84 changed files with 415 additions and 373 deletions

View File

@@ -11,7 +11,7 @@ import { RequestEntry } from '../data/request.reducer';
import { RequestService } from '../data/request.service';
import { BrowseDefinition } from './browse-definition.model';
import { DSpaceObject } from './dspace-object.model';
import { getUnauthorizedPath } from '../../app-routing.module';
import { getUnauthorizedRoute } from '../../app-routing-paths';
/**
* This file contains custom RxJS operators that can be used in multiple places
@@ -189,7 +189,7 @@ export const returnUnauthorizedUrlTreeOnFalse = (router: Router) =>
(source: Observable<boolean>): Observable<boolean | UrlTree> =>
source.pipe(
map((authorized: boolean) => {
return authorized ? authorized : router.parseUrl(getUnauthorizedPath())
return authorized ? authorized : router.parseUrl(getUnauthorizedRoute())
}));
export const getFinishedRemoteData = () =>