[CST-5418] Use different param for notifications and errors in the parseSaveResponse method

This commit is contained in:
Giuseppe Digilio
2022-04-21 11:30:15 +02:00
parent c250408382
commit 0506c5596a
3 changed files with 26 additions and 13 deletions

View File

@@ -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 };
}
}