mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
Merged submission module code
This commit is contained in:
20
src/app/core/json-patch/json-patch-operations.effects.ts
Normal file
20
src/app/core/json-patch/json-patch-operations.effects.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Effect, Actions } from '@ngrx/effects';
|
||||
|
||||
import {
|
||||
CommitPatchOperationsAction, FlushPatchOperationsAction,
|
||||
JsonPatchOperationsActionTypes
|
||||
} from './json-patch-operations.actions';
|
||||
|
||||
@Injectable()
|
||||
export class JsonPatchOperationsEffects {
|
||||
|
||||
@Effect() commit$ = this.actions$
|
||||
.ofType(JsonPatchOperationsActionTypes.COMMIT_JSON_PATCH_OPERATIONS)
|
||||
.map((action: CommitPatchOperationsAction) => {
|
||||
return new FlushPatchOperationsAction(action.payload.resourceType, action.payload.resourceId);
|
||||
});
|
||||
|
||||
constructor(private actions$: Actions) {}
|
||||
|
||||
}
|
Reference in New Issue
Block a user