Show generic error message on WP update failure

pull/4159/head
Alex Dik 9 years ago
parent 673b3fb3ba
commit cd5dac3769
  1. 7
      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 ...');
});
}
}

Loading…
Cancel
Save