From 89f82391e6643534215706c7f1d923ba847e822b Mon Sep 17 00:00:00 2001 From: Nicolas Molina Date: Wed, 25 Sep 2024 17:42:16 -0400 Subject: [PATCH] feat(editor-content): remove contentlet #29872 --- .../dot-edit-content-field.component.html | 2 -- .../dot-edit-content-file-field.component.ts | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/core-web/libs/edit-content/src/lib/components/dot-edit-content-field/dot-edit-content-field.component.html b/core-web/libs/edit-content/src/lib/components/dot-edit-content-field/dot-edit-content-field.component.html index c2556f74d352..95983b495ead 100644 --- a/core-web/libs/edit-content/src/lib/components/dot-edit-content-field/dot-edit-content-field.component.html +++ b/core-web/libs/edit-content/src/lib/components/dot-edit-content-field/dot-edit-content-field.component.html @@ -95,14 +95,12 @@ } @case (fieldTypes.FILE) { } @case (fieldTypes.IMAGE) { diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/dot-edit-content-file-field.component.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/dot-edit-content-file-field.component.ts index f24a8665fa95..4b3c63677df9 100644 --- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/dot-edit-content-file-field.component.ts +++ b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-file-field/dot-edit-content-file-field.component.ts @@ -11,8 +11,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { ButtonModule } from 'primeng/button'; -import { DotMessageService } from '@dotcms/data-access'; -import { DotCMSContentlet, DotCMSContentTypeField } from '@dotcms/dotcms-models'; +import { DotCMSContentTypeField } from '@dotcms/dotcms-models'; import { DotDropZoneComponent, DotMessagePipe, @@ -56,10 +55,8 @@ import { getUiMessage } from './utils/messages'; }) export class DotEditContentFileFieldComponent implements ControlValueAccessor, OnInit { readonly store = inject(FileFieldStore); - readonly #messageService = inject(DotMessageService); $field = input.required({ alias: 'field' }); - $contentlet = input.required({ alias: 'contentlet' }); private onChange: (value: string | File) => void; private onTouched: () => void;