From cc2db891f8d35e2d03258da49a71d1cbe91a5b2c Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Thu, 25 Jun 2026 18:38:47 +0300 Subject: [PATCH] chore(menu): drop empty ngOnInit hooks and trackByMenuSection/Pages helpers @for now uses the `track section.id` / `track page.id` syntax directly, so the dedicated trackBy methods are no longer referenced. Remove them along with the empty OnInit lifecycle hooks they used to live next to. --- .../src/app/modules/home/menu/menu-link.component.ts | 7 ++----- .../app/modules/home/menu/menu-toggle.component.html | 4 ++-- .../app/modules/home/menu/menu-toggle.component.ts | 11 ++--------- .../app/modules/home/menu/side-menu.component.html | 2 +- .../src/app/modules/home/menu/side-menu.component.ts | 12 ++---------- 5 files changed, 9 insertions(+), 27 deletions(-) diff --git a/ui-ngx/src/app/modules/home/menu/menu-link.component.ts b/ui-ngx/src/app/modules/home/menu/menu-link.component.ts index 1b675bf1eb..46f0796417 100644 --- a/ui-ngx/src/app/modules/home/menu/menu-link.component.ts +++ b/ui-ngx/src/app/modules/home/menu/menu-link.component.ts @@ -14,7 +14,7 @@ /// limitations under the License. /// -import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core'; +import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; import { MenuSection } from '@core/services/menu.models'; import { coerceBoolean } from '@shared/decorators/coercion'; @@ -25,7 +25,7 @@ import { coerceBoolean } from '@shared/decorators/coercion'; changeDetection: ChangeDetectionStrategy.OnPush, standalone: false }) -export class MenuLinkComponent implements OnInit { +export class MenuLinkComponent { @Input() section: MenuSection; @@ -36,7 +36,4 @@ export class MenuLinkComponent implements OnInit { constructor() { } - ngOnInit() { - } - } diff --git a/ui-ngx/src/app/modules/home/menu/menu-toggle.component.html b/ui-ngx/src/app/modules/home/menu/menu-toggle.component.html index 6133e5d359..850409b964 100644 --- a/ui-ngx/src/app/modules/home/menu/menu-toggle.component.html +++ b/ui-ngx/src/app/modules/home/menu/menu-toggle.component.html @@ -37,7 +37,7 @@ [class.tb-toggled]="section.opened">