mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 03:23:07 +00:00
Checked there is no pending save when a new save operation is dispatched
This commit is contained in:
@@ -184,7 +184,11 @@ export class SubmissionService {
|
|||||||
* The submission id
|
* The submission id
|
||||||
*/
|
*/
|
||||||
dispatchSave(submissionId) {
|
dispatchSave(submissionId) {
|
||||||
|
this.getSubmissionSaveProcessingStatus(submissionId).pipe(
|
||||||
|
find((isPending: boolean) => !isPending)
|
||||||
|
).subscribe(() => {
|
||||||
this.store.dispatch(new SaveSubmissionFormAction(submissionId));
|
this.store.dispatch(new SaveSubmissionFormAction(submissionId));
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user