mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 03:53:02 +00:00
[CST-5418] Use different param for notifications and errors in the parseSaveResponse method
This commit is contained in:
@@ -419,7 +419,8 @@ export class SaveSubmissionFormSuccessAction implements Action {
|
||||
payload: {
|
||||
submissionId: string;
|
||||
submissionObject: SubmissionObject[];
|
||||
notify?: boolean
|
||||
showNotifications?: boolean;
|
||||
showErrors?: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -429,9 +430,13 @@ export class SaveSubmissionFormSuccessAction implements Action {
|
||||
* the submission's ID
|
||||
* @param submissionObject
|
||||
* the submission's Object
|
||||
* @param showNotifications
|
||||
* a boolean representing if to show notifications on save
|
||||
* @param showErrors
|
||||
* a boolean representing if to show errors on save
|
||||
*/
|
||||
constructor(submissionId: string, submissionObject: SubmissionObject[], notify?: boolean) {
|
||||
this.payload = { submissionId, submissionObject, notify };
|
||||
constructor(submissionId: string, submissionObject: SubmissionObject[], showNotifications?: boolean, showErrors?: boolean) {
|
||||
this.payload = { submissionId, submissionObject, showNotifications, showErrors };
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user