mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
72541: Fix tests, remove redundant injection and added JSDocs
This commit is contained in:
@@ -195,7 +195,9 @@ export const returnUnauthorizedUrlTreeOnFalse = (router: Router) =>
|
||||
|
||||
/**
|
||||
* Operator that returns a UrlTree to the unauthorized page when the boolean received is false
|
||||
* @param router
|
||||
* @param router Router
|
||||
* @param redirect Redirect URL to add to the UrlTree. This is used to redirect back to the original route after the
|
||||
* user accepts the agreement.
|
||||
*/
|
||||
export const returnEndUserAgreementUrlTreeOnFalse = (router: Router, redirect: string) =>
|
||||
(source: Observable<boolean>): Observable<boolean | UrlTree> =>
|
||||
|
Reference in New Issue
Block a user