diff --git a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field/form-field.component.html b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field/form-field.component.html index 37efc9233..99ba45ec7 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field/form-field.component.html +++ b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field/form-field.component.html @@ -101,10 +101,9 @@
- + {{field.data.label}} {{propertiesFormGroup?.get(field.id).get('booleanValue').getError('backendError').message}} - {{'GENERAL.VALIDATION.REQUIRED' | translate}}
diff --git a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field/form-field.component.ts b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field/form-field.component.ts index 0099317e7..663c8d679 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field/form-field.component.ts +++ b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field/form-field.component.ts @@ -27,7 +27,6 @@ import { Observable } from 'rxjs'; import { distinctUntilChanged, takeUntil } from 'rxjs/operators'; import { nameof } from 'ts-simple-nameof'; import { DescriptionFormService } from '../services/description-form.service'; -import { MatCheckboxChange } from '@angular/material/checkbox'; @Component({ selector: 'app-description-form-field', @@ -269,10 +268,6 @@ export class DescriptionFormFieldComponent extends BaseComponent implements OnIn } } - checkboxChangeEvent(event: MatCheckboxChange, fieldId: string) { - if (!(event?.checked ?? true)) this.propertiesFormGroup?.get(fieldId)?.get('booleanValue')?.reset(); - } - onRemove(makeFilesNull: boolean = true) { this.makeFilesNull() this.cdr.detectChanges();