From 6ebadd5a2c9270af4669d17d8f38d6013457368c Mon Sep 17 00:00:00 2001 From: JOSU9435 Date: Sat, 22 Jun 2024 14:06:36 +0530 Subject: [PATCH] update setting name hideDeprecatedDocItems -> doc.hideDeprecatedItems --- .../app/modules/altair/containers/window/window.component.ts | 2 +- packages/altair-core/src/types/state/settings.interfaces.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/altair-app/src/app/modules/altair/containers/window/window.component.ts b/packages/altair-app/src/app/modules/altair/containers/window/window.component.ts index 9476bfabb5..3609f15461 100644 --- a/packages/altair-app/src/app/modules/altair/containers/window/window.component.ts +++ b/packages/altair-app/src/app/modules/altair/containers/window/window.component.ts @@ -177,7 +177,7 @@ export class WindowComponent implements OnInit { select((state) => state.settings.disableLineNumbers) ); this.hideDeprecatedDocItems$ = this.store.pipe( - select((state) => state.settings.hideDeprecatedDocItems) + select((state) => state.settings['doc.hideDeprecatedItems']) ); this.collections$ = this.store.pipe(select((state) => state.collection.list)); this.activeWindowId$ = this.store.pipe( diff --git a/packages/altair-core/src/types/state/settings.interfaces.ts b/packages/altair-core/src/types/state/settings.interfaces.ts index 1f6433d5d3..3b74b695ce 100644 --- a/packages/altair-core/src/types/state/settings.interfaces.ts +++ b/packages/altair-core/src/types/state/settings.interfaces.ts @@ -109,7 +109,7 @@ export interface SettingsState { /** * Hides deprecated Doc items */ - hideDeprecatedDocItems?: boolean; + 'doc.hideDeprecatedItems'?: boolean; /** * Specify custom theme config to override the specified theme values