@thetradeengineorg1/snova-shell-module 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11379,9 +11379,6 @@ class HeaderSideComponent extends CustomAppBaseComponent {
11379
11379
  // this.getActTrackerRecorder();
11380
11380
  if ((localStorage.getItem(LocalStorageProperties.UserModel) != null && localStorage.getItem(LocalStorageProperties.UserModel) != undefined)) {
11381
11381
  this.loadNotifications();
11382
- var user = JSON.parse(localStorage.getItem(LocalStorageProperties.UserModel));
11383
- console.log("user", user);
11384
- this.monitorCompanyrelatedDetails(user);
11385
11382
  }
11386
11383
  let currentCulture = this.cookieService.get(LocalStorageProperties.CurrentCulture);
11387
11384
  const companylan = JSON.parse(this.cookieService.get(LocalStorageProperties.CompanyDetails));
@@ -12172,6 +12169,10 @@ class HeaderSideComponent extends CustomAppBaseComponent {
12172
12169
  this.layoutConf = this.layout.layoutConf;
12173
12170
  // this.themeModel$ = this.store.pipe(select(sharedModuleReducers.getThemeModel));
12174
12171
  //this.store.dispatch(new InitializeAfterLoginData());
12172
+ var user = JSON.parse(localStorage.getItem(LocalStorageProperties.UserModel));
12173
+ if (user != null) {
12174
+ this.monitorCompanyrelatedDetails(user);
12175
+ }
12175
12176
  this.loggedInUserId = this.cookieService.get(LocalStorageProperties.CurrentUserId);
12176
12177
  this.getEmployeeIdByUserId();
12177
12178
  let environment = JSON.parse(localStorage.getItem(LocalStorageProperties.Environment));
@@ -12192,11 +12193,9 @@ class HeaderSideComponent extends CustomAppBaseComponent {
12192
12193
  this.companiesList = user.companiesList;
12193
12194
  this.getCompanyDetails(user.companyId);
12194
12195
  var company = this.companiesList.filter(x => x.companyId.toLowerCase() == this.cookieService.get(LocalStorageProperties.CompanyId).toLowerCase());
12195
- console.log("company", company, this.companiesList);
12196
- console.log("companyId", this.cookieService.get(LocalStorageProperties.CompanyId));
12197
- console.log("user", user);
12198
12196
  this.selectedCompany = company ? company[0] : null;
12199
12197
  this.selectedCompanyName = company ? company[0] ? company[0].companyName : null : null;
12198
+ this.cdRef.detectChanges();
12200
12199
  }
12201
12200
  navigateToDashboards() {
12202
12201
  const userReference = localStorage.getItem(LocalStorageProperties.UserReferenceId);