Skip to content

Commit cf925b4

Browse files
Merge branch 'w2p-138644_process-scheduling-ui' into w2p-138644_process-scheduling-ui-9.0
2 parents f093f47 + 06dfdca commit cf925b4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/app/process-page/form/process-form.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ export class ProcessFormComponent implements OnInit {
126126
const content = this.translationService.get('process.new.notification.success.content');
127127
this.notificationsService.success(title, content);
128128
this.sendBack(rd.payload);
129+
} else if (rd.statusCode === 422) {
130+
const title = this.translationService.get('process.new.notification.error.title');
131+
this.notificationsService.error(title, rd.errorMessage, undefined, true);
129132
} else {
130133
const title = this.translationService.get('process.new.notification.error.title');
131134
const content = this.translationService.get('process.new.notification.error.content');

0 commit comments

Comments
 (0)