|
|
|
@ -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<AppState>, |
|
|
|
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(); |
|
|
|
|