Browse Source

Adapt overview

pull/2870/head
Thomas Kaul 2 years ago
parent
commit
f100ac12c8
  1. 1
      apps/client/src/app/components/home-overview/home-overview.component.ts
  2. 2
      apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html
  3. 4
      apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts

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

@ -74,7 +74,6 @@ export class HomeOverviewComponent implements OnDestroy, OnInit {
}); });
this.showDetails = this.showDetails =
!this.hasImpersonationId &&
!this.user.settings.isRestrictedView && !this.user.settings.isRestrictedView &&
this.user.settings.viewMode !== 'ZEN'; this.user.settings.viewMode !== 'ZEN';

2
apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html

@ -2,7 +2,7 @@
<div class="no-gutters row"> <div class="no-gutters row">
<div <div
class="status-container text-muted text-right" class="status-container text-muted text-right"
(click)="onShowErrors()" (click)="errors?.length > 0 && onShowErrors()"
> >
@if (errors?.length > 0 && !isLoading) { @if (errors?.length > 0 && !isLoading) {
<ion-icon <ion-icon

4
apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts

@ -58,7 +58,7 @@ export class PortfolioPerformanceComponent implements OnChanges, OnInit {
duration: 1, duration: 1,
separator: getNumberFormatGroup(this.locale) separator: getNumberFormatGroup(this.locale)
}).start(); }).start();
} else if (this.performance?.currentValue === null) { } else if (this.showDetails === false) {
new CountUp( new CountUp(
'value', 'value',
this.performance?.currentNetPerformancePercent * 100, this.performance?.currentNetPerformancePercent * 100,
@ -69,6 +69,8 @@ export class PortfolioPerformanceComponent implements OnChanges, OnInit {
separator: getNumberFormatGroup(this.locale) separator: getNumberFormatGroup(this.locale)
} }
).start(); ).start();
} else {
this.value.nativeElement.innerHTML = '***';
} }
} }
} }

Loading…
Cancel
Save