From c7ed268f8ce9d05891ecfd66d1fe8796fdcb4586 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Tue, 13 May 2025 18:22:44 +0300 Subject: [PATCH] UI: Clear app component --- ui-ngx/src/app/app.component.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ui-ngx/src/app/app.component.ts b/ui-ngx/src/app/app.component.ts index 85bddd56cb..dc3d539acb 100644 --- a/ui-ngx/src/app/app.component.ts +++ b/ui-ngx/src/app/app.component.ts @@ -16,7 +16,7 @@ import 'hammerjs'; -import { Component, OnInit } from '@angular/core'; +import { Component } from '@angular/core'; import { environment as env } from '@env/environment'; @@ -40,7 +40,7 @@ import { UnitService } from '@core/services/unit.service'; templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) -export class AppComponent implements OnInit { +export class AppComponent { constructor(private store: Store, private storageService: LocalStorageService, @@ -103,7 +103,7 @@ export class AppComponent implements OnInit { userLang = settings?.userLang ?? null; } this.notifyUserLang(userLang); - this.unitService.setUnitSystem(userDetails?.additionalInfo?.unitSystem) + this.unitService.setUnitSystem(userDetails?.additionalInfo?.unitSystem); }), skip(1), ).subscribe((data) => { @@ -112,10 +112,7 @@ export class AppComponent implements OnInit { this.authService.reloadUser(); } - ngOnInit() { - } - - onActivateComponent($event: any) { + onActivateComponent(_$event: any) { const loadingElement = $('div#tb-loading-spinner'); if (loadingElement.length) { loadingElement.remove();