Browse Source

Refactoring (#1784)

pull/1792/head
Thomas Kaul 2 years ago
committed by GitHub
parent
commit
b6a7804a26
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      apps/client/src/app/components/header/header.component.ts
  2. 4
      apps/client/src/app/components/home-holdings/home-holdings.component.ts
  3. 4
      apps/client/src/app/components/home-overview/home-overview.component.ts
  4. 4
      apps/client/src/app/components/home-summary/home-summary.component.ts
  5. 4
      apps/client/src/app/pages/accounts/accounts-page.component.ts
  6. 4
      apps/client/src/app/pages/portfolio/activities/activities-page.component.ts
  7. 4
      apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts
  8. 4
      apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts
  9. 4
      apps/client/src/app/pages/portfolio/holdings/holdings-page.component.ts

4
apps/client/src/app/components/header/header.component.ts

@ -56,8 +56,8 @@ export class HeaderComponent implements OnChanges {
this.impersonationStorageService
.onChangeHasImpersonation()
.pipe(takeUntil(this.unsubscribeSubject))
.subscribe((id) => {
this.impersonationId = id;
.subscribe((impersonationId) => {
this.impersonationId = impersonationId;
});
}

4
apps/client/src/app/components/home-holdings/home-holdings.component.ts

@ -78,8 +78,8 @@ export class HomeHoldingsComponent implements OnDestroy, OnInit {
this.impersonationStorageService
.onChangeHasImpersonation()
.pipe(takeUntil(this.unsubscribeSubject))
.subscribe((aId) => {
this.hasImpersonationId = !!aId;
.subscribe((impersonationId) => {
this.hasImpersonationId = !!impersonationId;
});
this.update();

4
apps/client/src/app/components/home-overview/home-overview.component.ts

@ -66,8 +66,8 @@ export class HomeOverviewComponent implements OnDestroy, OnInit {
this.impersonationStorageService
.onChangeHasImpersonation()
.pipe(takeUntil(this.unsubscribeSubject))
.subscribe((aId) => {
this.hasImpersonationId = !!aId;
.subscribe((impersonationId) => {
this.hasImpersonationId = !!impersonationId;
this.changeDetectorRef.markForCheck();
});

4
apps/client/src/app/components/home-summary/home-summary.component.ts

@ -69,8 +69,8 @@ export class HomeSummaryComponent implements OnDestroy, OnInit {
this.impersonationStorageService
.onChangeHasImpersonation()
.pipe(takeUntil(this.unsubscribeSubject))
.subscribe((aId) => {
this.hasImpersonationId = !!aId;
.subscribe((impersonationId) => {
this.hasImpersonationId = !!impersonationId;
});
}

4
apps/client/src/app/pages/accounts/accounts-page.component.ts

@ -77,8 +77,8 @@ export class AccountsPageComponent implements OnDestroy, OnInit {
this.impersonationStorageService
.onChangeHasImpersonation()
.pipe(takeUntil(this.unsubscribeSubject))
.subscribe((aId) => {
this.hasImpersonationId = !!aId;
.subscribe((impersonationId) => {
this.hasImpersonationId = !!impersonationId;
});
this.userService.stateChanged

4
apps/client/src/app/pages/portfolio/activities/activities-page.component.ts

@ -88,8 +88,8 @@ export class ActivitiesPageComponent implements OnDestroy, OnInit {
this.impersonationStorageService
.onChangeHasImpersonation()
.pipe(takeUntil(this.unsubscribeSubject))
.subscribe((aId) => {
this.hasImpersonationId = !!aId;
.subscribe((impersonationId) => {
this.hasImpersonationId = !!impersonationId;
});
this.userService.stateChanged

4
apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts

@ -118,8 +118,8 @@ export class AllocationsPageComponent implements OnDestroy, OnInit {
this.impersonationStorageService
.onChangeHasImpersonation()
.pipe(takeUntil(this.unsubscribeSubject))
.subscribe((aId) => {
this.hasImpersonationId = !!aId;
.subscribe((impersonationId) => {
this.hasImpersonationId = !!impersonationId;
});
this.filters$

4
apps/client/src/app/pages/portfolio/analysis/analysis-page.component.ts

@ -109,8 +109,8 @@ export class AnalysisPageComponent implements OnDestroy, OnInit {
this.impersonationStorageService
.onChangeHasImpersonation()
.pipe(takeUntil(this.unsubscribeSubject))
.subscribe((aId) => {
this.hasImpersonationId = !!aId;
.subscribe((impersonationId) => {
this.hasImpersonationId = !!impersonationId;
});
this.filters$

4
apps/client/src/app/pages/portfolio/holdings/holdings-page.component.ts

@ -72,8 +72,8 @@ export class HoldingsPageComponent implements OnDestroy, OnInit {
this.impersonationStorageService
.onChangeHasImpersonation()
.pipe(takeUntil(this.unsubscribeSubject))
.subscribe((aId) => {
this.hasImpersonationId = !!aId;
.subscribe((impersonationId) => {
this.hasImpersonationId = !!impersonationId;
});
this.filters$

Loading…
Cancel
Save