mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +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
|
||||
*/
|
||||
dispatchSave(submissionId) {
|
||||
this.store.dispatch(new SaveSubmissionFormAction(submissionId));
|
||||
this.getSubmissionSaveProcessingStatus(submissionId).pipe(
|
||||
find((isPending: boolean) => !isPending)
|
||||
).subscribe(() => {
|
||||
this.store.dispatch(new SaveSubmissionFormAction(submissionId));
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user