From 8068904a858aac6746bb2bc01afd9c701e963d92 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Tue, 16 Jun 2026 17:20:40 +0700 Subject: [PATCH] feat(client): enforce immutability --- .../holding-detail-dialog.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts b/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts index 5f8ac46db..be2e0beb4 100644 --- a/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts +++ b/apps/client/src/app/components/holding-detail-dialog/holding-detail-dialog.component.ts @@ -115,7 +115,7 @@ export class GfHoldingDetailDialogComponent implements OnInit { protected averagePrice: number; protected averagePricePrecision = 2; protected benchmarkDataItems: NullableLineChartItem[]; - protected benchmarkLabel = $localize`Average Unit Price`; + protected readonly benchmarkLabel = $localize`Average Unit Price`; protected countries: { [code: string]: { name: string; value: number }; }; @@ -126,14 +126,14 @@ export class GfHoldingDetailDialogComponent implements OnInit { protected dividendInBaseCurrencyPrecision = 2; protected dividendYieldPercentWithCurrencyEffect: number; protected feeInBaseCurrency: number; - protected getCountryName = getCountryName; + protected readonly getCountryName = getCountryName; protected hasPermissionToCreateOwnTag: boolean; protected hasPermissionToReadMarketDataOfOwnAssetProfile: boolean; protected historicalDataItems: LineChartItem[]; protected holdingForm: FormGroup; protected investmentInBaseCurrencyWithCurrencyEffect: number; protected investmentInBaseCurrencyWithCurrencyEffectPrecision = 2; - protected isUUID = isUUID; + protected readonly isUUID = isUUID; protected marketDataItems: MarketData[] = []; protected marketPrice: number; protected marketPriceMax: number; @@ -146,11 +146,11 @@ export class GfHoldingDetailDialogComponent implements OnInit { protected netPerformanceWithCurrencyEffect: number; protected netPerformanceWithCurrencyEffectPrecision = 2; protected pageIndex = 0; - protected pageSize = DEFAULT_PAGE_SIZE; + protected readonly pageSize = DEFAULT_PAGE_SIZE; protected quantity: number; protected quantityPrecision = 2; protected reportDataGlitchMail: string; - protected routerLinkAdminControlMarketData = + protected readonly routerLinkAdminControlMarketData = internalRoutes.adminControl.subRoutes.marketData.routerLink; protected sectors: { [name: string]: { name: string; value: number }; @@ -159,7 +159,7 @@ export class GfHoldingDetailDialogComponent implements OnInit { protected sortDirection: SortDirection = 'desc'; protected SymbolProfile: EnhancedSymbolProfile; protected tagsAvailable: Tag[]; - protected translate = translate; + protected readonly translate = translate; protected user: User; protected value: number;