From 9bd4653421da38d070d3ea64fe9883ce692fc00c Mon Sep 17 00:00:00 2001 From: Nicolas Molina Date: Fri, 18 Oct 2024 14:30:29 -0400 Subject: [PATCH] chore(edit-content): use signal #30389 --- .../components/dot-navigation/dot-navigation.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core-web/apps/dotcms-ui/src/app/view/components/dot-navigation/dot-navigation.component.ts b/core-web/apps/dotcms-ui/src/app/view/components/dot-navigation/dot-navigation.component.ts index 430f464b4df..e6075316462 100644 --- a/core-web/apps/dotcms-ui/src/app/view/components/dot-navigation/dot-navigation.component.ts +++ b/core-web/apps/dotcms-ui/src/app/view/components/dot-navigation/dot-navigation.component.ts @@ -51,7 +51,7 @@ export class DotNavigationComponent { }); @HostBinding('style.overflow-y') get overFlow() { - return this.#dotNavigationService.collapsed$.getValue() ? '' : 'auto'; + return this.$isCollapsed() ? '' : 'auto'; } /** @@ -78,7 +78,7 @@ export class DotNavigationComponent { * @memberof DotNavigationComponent */ onMenuClick(event: { originalEvent: MouseEvent; data: DotMenu }): void { - if (this.#dotNavigationService.collapsed$.getValue()) { + if (this.$isCollapsed()) { this.#dotNavigationService.goTo(event.data.menuItems[0].menuLink); } else { this.#dotNavigationService.setOpen(event.data.id); @@ -92,7 +92,7 @@ export class DotNavigationComponent { */ @HostListener('document:click') handleDocumentClick(): void { - if (this.#dotNavigationService.collapsed$.getValue()) { + if (this.$isCollapsed()) { this.#dotNavigationService.closeAllSections(); } }