From 12367038ad6907ee944c15e48b77ade3c5a9f4c8 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 18 Feb 2020 10:38:52 +0100 Subject: [PATCH] Fix for show all controls. --- .../features/content/pages/content/content-field.component.ts | 4 ++-- .../content/pages/content/field-languages.component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/app/features/content/pages/content/content-field.component.ts b/frontend/app/features/content/pages/content/content-field.component.ts index 44343aa8d..44179dae8 100644 --- a/frontend/app/features/content/pages/content/content-field.component.ts +++ b/frontend/app/features/content/pages/content/content-field.component.ts @@ -120,8 +120,8 @@ export class ContentFieldComponent implements DoCheck, OnChanges { } } - public changeShowAllControls(value: boolean) { - this.showAllControls = value; + public changeShowAllControls(showAllControls: boolean) { + this.showAllControls = showAllControls; this.localStore.setBoolean(this.configKey(), this.showAllControls); } diff --git a/frontend/app/features/content/pages/content/field-languages.component.ts b/frontend/app/features/content/pages/content/field-languages.component.ts index 90c3a071b..3f56fde76 100644 --- a/frontend/app/features/content/pages/content/field-languages.component.ts +++ b/frontend/app/features/content/pages/content/field-languages.component.ts @@ -35,6 +35,6 @@ export class FieldLanguagesComponent { public field: RootFieldDto; public toggleShowAllControls() { - this.showAllControlsChange.emit(this.showAllControls); + this.showAllControlsChange.emit(!this.showAllControls); } } \ No newline at end of file