diff --git a/frontend/app/features/content/pages/content/editor/content-field.component.html b/frontend/app/features/content/pages/content/editor/content-field.component.html index 5cdc3859a..20f42a41f 100644 --- a/frontend/app/features/content/pages/content/editor/content-field.component.html +++ b/frontend/app/features/content/pages/content/editor/content-field.component.html @@ -3,7 +3,7 @@
- diff --git a/frontend/app/features/content/pages/content/editor/content-field.component.ts b/frontend/app/features/content/pages/content/editor/content-field.component.ts index f44a23fbe..34e38deb0 100644 --- a/frontend/app/features/content/pages/content/editor/content-field.component.ts +++ b/frontend/app/features/content/pages/content/editor/content-field.component.ts @@ -55,25 +55,15 @@ export class ContentFieldComponent implements OnChanges { return this.formModel.field.properties.isHalfWidth && !this.isCompact && !this.formCompare; } + public get isTranslatable() { + return this.formModel.field.properties.fieldType === 'String' && this.formModel.field.isLocalizable && this.languages.length > 1; + } + public showAllControls = false; public isDifferent: Observable; public isInvalid: Observable; - public get canTranslate() { - if (this.languages.length <= 1) { - return false; - } - - if (!this.formModel.field.isLocalizable) { - return false; - } - - const properties = this.formModel.field.properties; - - return Types.is(properties, StringFieldPropertiesDto) && (properties.editor === 'Input' || properties.editor === 'TextArea'); - } - constructor( private readonly appsState: AppsState, private readonly localStore: LocalStoreService,