Edit and create communities

This commit is contained in:
lotte
2018-12-20 15:54:47 +01:00
parent cd52c0cc06
commit 7a12332d70
39 changed files with 427 additions and 151 deletions

View File

@@ -73,7 +73,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
@@ -264,7 +264,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);
}