mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 20:43:08 +00:00
Edit and create communities
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user