Browse Source

fix(client): remove dead code

pull/6927/head
KenTandrian 2 days ago
parent
commit
3d8dc44d68
  1. 5
      apps/client/src/app/components/home-overview/home-overview.component.ts
  2. 2
      apps/client/src/app/components/home-overview/home-overview.html
  3. 4
      apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html
  4. 2
      apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts

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

@ -21,7 +21,6 @@ import { DataService } from '@ghostfolio/ui/services';
import { import {
ChangeDetectorRef, ChangeDetectorRef,
Component, Component,
CUSTOM_ELEMENTS_SCHEMA,
DestroyRef, DestroyRef,
inject, inject,
OnInit OnInit
@ -38,7 +37,6 @@ import { DeviceDetectorService } from 'ngx-device-detector';
MatButtonModule, MatButtonModule,
RouterModule RouterModule
], ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
selector: 'gf-home-overview', selector: 'gf-home-overview',
styleUrls: ['./home-overview.scss'], styleUrls: ['./home-overview.scss'],
templateUrl: './home-overview.html' templateUrl: './home-overview.html'
@ -46,12 +44,9 @@ import { DeviceDetectorService } from 'ngx-device-detector';
export class GfHomeOverviewComponent implements OnInit { export class GfHomeOverviewComponent implements OnInit {
protected deviceType: string; protected deviceType: string;
protected errors: AssetProfileIdentifier[]; protected errors: AssetProfileIdentifier[];
protected hasError: boolean;
protected hasImpersonationId: boolean; protected hasImpersonationId: boolean;
protected hasPermissionToCreateActivity: boolean; protected hasPermissionToCreateActivity: boolean;
protected historicalDataItems: LineChartItem[] | null; protected historicalDataItems: LineChartItem[] | null;
protected isAllTimeHigh: boolean;
protected isAllTimeLow: boolean;
protected isLoadingPerformance = true; protected isLoadingPerformance = true;
protected performance: PortfolioPerformance; protected performance: PortfolioPerformance;
protected performanceLabel = $localize`Performance`; protected performanceLabel = $localize`Performance`;

2
apps/client/src/app/components/home-overview/home-overview.html

@ -88,8 +88,6 @@
class="pb-4" class="pb-4"
[deviceType]="deviceType" [deviceType]="deviceType"
[errors]="errors" [errors]="errors"
[isAllTimeHigh]="isAllTimeHigh"
[isAllTimeLow]="isAllTimeLow"
[isLoading]="isLoadingPerformance" [isLoading]="isLoadingPerformance"
[locale]="user?.settings?.locale" [locale]="user?.settings?.locale"
[performance]="performance" [performance]="performance"

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

@ -24,10 +24,6 @@
} }
<div <div
class="display-4 font-weight-bold m-0 text-center value-container" class="display-4 font-weight-bold m-0 text-center value-container"
[class]="{
'text-danger': isAllTimeLow,
'text-success': isAllTimeHigh
}"
[hidden]="isLoading" [hidden]="isLoading"
> >
<span #value id="value"></span> <span #value id="value"></span>

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

@ -35,8 +35,6 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
export class GfPortfolioPerformanceComponent implements OnChanges { export class GfPortfolioPerformanceComponent implements OnChanges {
@Input() deviceType: string; @Input() deviceType: string;
@Input() errors: ResponseError['errors']; @Input() errors: ResponseError['errors'];
@Input() isAllTimeHigh: boolean;
@Input() isAllTimeLow: boolean;
@Input() isLoading: boolean; @Input() isLoading: boolean;
@Input() locale = getLocale(); @Input() locale = getLocale();
@Input() performance: PortfolioPerformance; @Input() performance: PortfolioPerformance;

Loading…
Cancel
Save