Deactivate edit fields after saving

pull/5061/head
Oliver Günther 8 years ago
parent a64e0cd777
commit cb044cb0fb
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 5
      frontend/app/components/wp-edit/wp-edit-form.directive.ts

@ -146,7 +146,10 @@ export class WorkPackageEditFormController {
this.workPackage.save()
.then(() => {
angular.forEach(this.fields, (field:WorkPackageEditFieldController) => field.setErrors([]));
angular.forEach(this.fields, (field:WorkPackageEditFieldController) => {
field.setErrors([]);
field.deactivate();
});
deferred.resolve(this.workPackage);
this.wpNotificationsService.showSave(this.workPackage, isInitial);

Loading…
Cancel
Save