Skip to content

Commit

Permalink
feat(editor-content): remove contentlet #29872
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobytes committed Sep 25, 2024
1 parent bd896c4 commit 89f8239
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,12 @@
}
@case (fieldTypes.FILE) {
<dot-edit-content-file-field
[contentlet]="contentlet"
[formControlName]="field.variable"
[attr.data-testId]="'field-' + field.variable"
[field]="field" />
}
@case (fieldTypes.IMAGE) {
<dot-edit-content-file-field
[contentlet]="contentlet"
[formControlName]="field.variable"
[attr.data-testId]="'field-' + field.variable"
[field]="field" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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<DotCMSContentTypeField>({ alias: 'field' });
$contentlet = input.required<DotCMSContentlet>({ alias: 'contentlet' });

private onChange: (value: string | File) => void;
private onTouched: () => void;
Expand Down

0 comments on commit 89f8239

Please sign in to comment.