From b735cedc62b174579471ed1c650fd08ad5bb7bc2 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Sat, 23 May 2026 15:44:13 +0700 Subject: [PATCH] feat(client): enforce encapsulation --- .../home-overview/home-overview.component.ts | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/apps/client/src/app/components/home-overview/home-overview.component.ts b/apps/client/src/app/components/home-overview/home-overview.component.ts index 53569db89..f056fa55b 100644 --- a/apps/client/src/app/components/home-overview/home-overview.component.ts +++ b/apps/client/src/app/components/home-overview/home-overview.component.ts @@ -44,25 +44,25 @@ import { DeviceDetectorService } from 'ngx-device-detector'; templateUrl: './home-overview.html' }) export class GfHomeOverviewComponent implements OnInit { - public deviceType: string; - public errors: AssetProfileIdentifier[]; - public hasError: boolean; - public hasImpersonationId: boolean; - public hasPermissionToCreateActivity: boolean; - public historicalDataItems: LineChartItem[] | null; - public isAllTimeHigh: boolean; - public isAllTimeLow: boolean; - public isLoadingPerformance = true; - public performance: PortfolioPerformance; - public performanceLabel = $localize`Performance`; - public precision = 2; - public routerLinkAccounts = internalRoutes.accounts.routerLink; - public routerLinkPortfolio = internalRoutes.portfolio.routerLink; - public routerLinkPortfolioActivities = + 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`; + protected precision = 2; + protected routerLinkAccounts = internalRoutes.accounts.routerLink; + protected routerLinkPortfolio = internalRoutes.portfolio.routerLink; + protected routerLinkPortfolioActivities = internalRoutes.portfolio.subRoutes.activities.routerLink; - public showDetails = false; - public unit: string; - public user: User; + protected showDetails = false; + protected unit: string; + protected user: User; private readonly changeDetectorRef = inject(ChangeDetectorRef); private readonly dataService = inject(DataService);