Skip to content

Commit

Permalink
feat(editor-content): fix error with file naming #29871
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobytes committed Sep 16, 2024
1 parent 69f5886 commit 2c719b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { provideHttpClient } from '@angular/common/http';
import { DotMessageService } from '@dotcms/data-access';

import { DotEditContentFileFieldComponent } from './dot-edit-content-file-field.component';
import { FileFileStore } from './store/file-field.store';
import { FileFieldStore } from './store/file-field.store';

describe('DotEditContentFileFieldComponent', () => {
let spectator: Spectator<DotEditContentFileFieldComponent>;
const createComponent = createComponentFactory({
component: DotEditContentFileFieldComponent,
detectChanges: false,
componentProviders: [
FileFileStore
FileFieldStore
],
providers: [
provideHttpClient(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
import { DotFileFieldPreviewComponent } from './components/dot-file-field-preview/dot-file-field-preview.component';
import { DotFileFieldUiMessageComponent } from './components/dot-file-field-ui-message/dot-file-field-ui-message.component';
import { INPUT_TYPES } from './models';
import { FileFileStore } from './store/file-field.store';
import { FileFieldStore } from './store/file-field.store';

@Component({
selector: 'dot-edit-content-file-field',
Expand All @@ -38,7 +38,7 @@ import { FileFileStore } from './store/file-field.store';
DotFileFieldPreviewComponent
],
providers: [
FileFileStore,
FileFieldStore,
{
multi: true,
provide: NG_VALUE_ACCESSOR,
Expand All @@ -50,7 +50,7 @@ import { FileFileStore } from './store/file-field.store';
changeDetection: ChangeDetectionStrategy.OnPush
})
export class DotEditContentFileFieldComponent implements ControlValueAccessor, OnInit {
readonly store = inject(FileFileStore);
readonly store = inject(FileFieldStore);
readonly #messageService = inject(DotMessageService);

$field = input.required<DotCMSContentTypeField>({ alias: 'field' });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const initialState: FileFieldState = {
uiMessage: null
};

export const FileFileStore = signalStore(
export const FileFieldStore = signalStore(
withState(initialState),
withComputed(({ fileStatus }) => ({
isEmpty: computed(() => {
Expand Down

0 comments on commit 2c719b7

Please sign in to comment.