mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 04:23:04 +00:00
Added actions to notifications state
This commit is contained in:
@@ -24,12 +24,12 @@ export class NotificationsEffects {
|
||||
* Authenticate user.
|
||||
* @method authenticate
|
||||
*/
|
||||
@Effect()
|
||||
/*@Effect()
|
||||
public timer: Observable<Action> = this.actions$
|
||||
.ofType(NotificationsActionTypes.NEW_NOTIFICATION_WITH_TIMER)
|
||||
.debounceTime((action) => action.payload.options.timeOut)
|
||||
.debounceTime((action) => action.payload.options.timeOut as number)
|
||||
.map(() => new RemoveNotificationAction());
|
||||
/* .switchMap((action: NewNotificationWithTimerAction) => Observable
|
||||
.switchMap((action: NewNotificationWithTimerAction) => Observable
|
||||
.timer(30000)
|
||||
.mapTo(() => new RemoveNotificationAction())
|
||||
);*/
|
||||
|
Reference in New Issue
Block a user