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

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

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

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

@ -24,10 +24,6 @@
}
<div
class="display-4 font-weight-bold m-0 text-center value-container"
[class]="{
'text-danger': isAllTimeLow,
'text-success': isAllTimeHigh
}"
[hidden]="isLoading"
>
<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 {
@Input() deviceType: string;
@Input() errors: ResponseError['errors'];
@Input() isAllTimeHigh: boolean;
@Input() isAllTimeLow: boolean;
@Input() isLoading: boolean;
@Input() locale = getLocale();
@Input() performance: PortfolioPerformance;

Loading…
Cancel
Save