Skip to content

Commit

Permalink
chore(edit-content): use signal #30389
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobytes committed Oct 18, 2024
1 parent cbf390b commit 9bd4653
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class DotNavigationComponent {
});

@HostBinding('style.overflow-y') get overFlow() {
return this.#dotNavigationService.collapsed$.getValue() ? '' : 'auto';
return this.$isCollapsed() ? '' : 'auto';
}

/**
Expand All @@ -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);
Expand All @@ -92,7 +92,7 @@ export class DotNavigationComponent {
*/
@HostListener('document:click')
handleDocumentClick(): void {
if (this.#dotNavigationService.collapsed$.getValue()) {
if (this.$isCollapsed()) {
this.#dotNavigationService.closeAllSections();
}
}
Expand Down

0 comments on commit 9bd4653

Please sign in to comment.