changed save functionality on dmp-editor
This commit is contained in:
parent
ca4efbeb49
commit
4c0a09c707
|
@ -304,11 +304,12 @@ export class DmpEditorComponent extends BaseEditor<DmpEditorModel, Dmp> implemen
|
|||
|
||||
formSubmit(): void {
|
||||
this.formService.removeAllBackEndErrors(this.formGroup);
|
||||
this.formService.touchAllFormFields(this.formGroup);
|
||||
if (this.formGroup.get('label').valid && this.formGroup.get('blueprint').valid && this.formGroup.get('status').valid
|
||||
&& this.formGroup.get('descriptionTemplates').valid) {
|
||||
this.persistEntity();
|
||||
}
|
||||
// this.formService.touchAllFormFields(this.formGroup);
|
||||
// if (this.formGroup.get('label').valid && this.formGroup.get('blueprint').valid && this.formGroup.get('status').valid
|
||||
// && this.formGroup.get('descriptionTemplates').valid) {
|
||||
// this.persistEntity();
|
||||
// }
|
||||
this.persistEntity();
|
||||
}
|
||||
|
||||
discardChanges() {
|
||||
|
|
Loading…
Reference in New Issue