58789: Rest call for creating metadata schemas

This commit is contained in:
Kristof De Langhe
2019-01-22 10:39:32 +01:00
parent 52a440c9f2
commit 73f24a5dc1
6 changed files with 64 additions and 53 deletions

View File

@@ -79,7 +79,7 @@ export class FormComponent implements OnDestroy, OnInit {
* An event fired when form is valid and submitted .
* Event's payload equals to the form content.
*/
@Output() submit: EventEmitter<Observable<any>> = new EventEmitter<Observable<any>>();
@Output() submitForm: EventEmitter<Observable<any>> = new EventEmitter<Observable<any>>();
/**
* An object of FormGroup type
@@ -273,7 +273,7 @@ export class FormComponent implements OnDestroy, OnInit {
*/
onSubmit(): void {
if (this.getFormGroupValidStatus()) {
this.submit.emit(this.formService.getFormData(this.formId));
this.submitForm.emit(this.formService.getFormData(this.formId));
} else {
this.formService.validateAllFormFields(this.formGroup);
}