mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[AAE-15522] Fix - Dropdown variable error messages are displayed at modeling part 2 (#8734)
* Revert preview flag changes * add get preview state method to form cloud service
This commit is contained in:
@@ -82,9 +82,6 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
|
||||
@Input()
|
||||
fieldValidators: FormFieldValidator[] = [...FORM_FIELD_VALIDATORS];
|
||||
|
||||
@Input()
|
||||
preview: boolean = false;
|
||||
|
||||
/** Emitted when the form is submitted with the `Save` or custom outcomes. */
|
||||
@Output()
|
||||
formSaved = new EventEmitter<FormModel>();
|
||||
@@ -179,10 +176,6 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
|
||||
this.refreshFormData();
|
||||
return;
|
||||
}
|
||||
|
||||
if (changes?.preview?.currentValue) {
|
||||
this.setFormPreviewState();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -364,10 +357,6 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
|
||||
this.onFormDataRefreshed(this.form);
|
||||
}
|
||||
|
||||
private setFormPreviewState(): void {
|
||||
this.form.preview = this.preview;
|
||||
}
|
||||
|
||||
protected onFormLoaded(form: FormModel) {
|
||||
this.formLoaded.emit(form);
|
||||
}
|
||||
|
Reference in New Issue
Block a user