mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge branch 'coar-notify-7' into coar-notify-7-part-two
This commit is contained in:
@@ -152,4 +152,5 @@ export type SuggestionTargetsActions
|
|||||||
| ClearSuggestionTargetsAction
|
| ClearSuggestionTargetsAction
|
||||||
| MarkUserSuggestionsAsVisitedAction
|
| MarkUserSuggestionsAsVisitedAction
|
||||||
| RetrieveTargetsBySourceAction
|
| RetrieveTargetsBySourceAction
|
||||||
| RetrieveAllTargetsErrorAction;
|
| RetrieveAllTargetsErrorAction
|
||||||
|
| RefreshUserSuggestionsAction;
|
||||||
|
@@ -62,7 +62,7 @@ export class SuggestionTargetsEffects {
|
|||||||
/**
|
/**
|
||||||
* Fetch the current user suggestion
|
* Fetch the current user suggestion
|
||||||
*/
|
*/
|
||||||
RefreshUserSuggestionsAction = createEffect(() => this.actions$.pipe(
|
refreshUserSuggestionsAction$ = createEffect(() => this.actions$.pipe(
|
||||||
ofType(SuggestionTargetActionTypes.REFRESH_USER_SUGGESTIONS),
|
ofType(SuggestionTargetActionTypes.REFRESH_USER_SUGGESTIONS),
|
||||||
switchMap((action: RefreshUserSuggestionsAction) => {
|
switchMap((action: RefreshUserSuggestionsAction) => {
|
||||||
return this.store$.select((state: any) => state.core.auth.userId)
|
return this.store$.select((state: any) => state.core.auth.userId)
|
||||||
@@ -76,7 +76,7 @@ export class SuggestionTargetsEffects {
|
|||||||
}),
|
}),
|
||||||
catchError((errors) => of(errors))
|
catchError((errors) => of(errors))
|
||||||
);
|
);
|
||||||
})));
|
})), { dispatch: false });
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the effect class variables.
|
* Initialize the effect class variables.
|
||||||
|
Reference in New Issue
Block a user