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 a904605f7..a4eed8824 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 @@ -87,7 +87,8 @@ export class DescriptionFormFieldComponent extends BaseComponent implements OnIn public dialog: MatDialog, private fileUtils: FileUtils, private referenceService: ReferenceService, - private storageFileService: StorageFileService + private storageFileService: StorageFileService, + private changeDetectorRef: ChangeDetectorRef ) { super(); } @@ -117,15 +118,6 @@ export class DescriptionFormFieldComponent extends BaseComponent implements OnIn } } - checkBoxChanged(event: MatCheckboxChange){ - if (event.checked){ - this.propertiesFormGroup?.get(this.field.id).get('textValue').setValue("true"); - } else{ - this.propertiesFormGroup?.get(this.field.id).get('textValue').setValue("false"); - } - this.visibilityRulesService.reloadVisibility(); - } - private applyFieldType(){ this.isRequired = this.field.validations?.includes(DescriptionTemplateFieldValidationType.Required); @@ -287,6 +279,7 @@ export class DescriptionFormFieldComponent extends BaseComponent implements OnIn private createFileNameDisplay(name: string, extension: string){ if (extension.startsWith('.')) this.fileNameDisplay = name + extension; else this.fileNameDisplay = name + '.' + extension; + this.changeDetectorRef.markForCheck(); } diff --git a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-section/form-section.component.html b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-section/form-section.component.html index 11d7a32fe..f8b89731b 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-section/form-section.component.html +++ b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-section/form-section.component.html @@ -33,7 +33,7 @@