diff --git a/frontend/app/components/wp-edit/wp-edit-form.directive.ts b/frontend/app/components/wp-edit/wp-edit-form.directive.ts index 7eff5cc453..d0055b4bd2 100644 --- a/frontend/app/components/wp-edit/wp-edit-form.directive.ts +++ b/frontend/app/components/wp-edit/wp-edit-form.directive.ts @@ -29,12 +29,17 @@ export class WorkPackageEditFormController { public workPackage; + constructor(protected NotificationsService) { + } + public loadSchema() { return this.workPackage.getSchema(); } public updateWorkPackage() { - this.workPackage.save(); + this.workPackage.save().catch(error => { + this.NotificationsService.addError('There was an error ...'); + }); } }