Browse Source

feat(client): enforce encapsulation

pull/6926/head
KenTandrian 2 days ago
parent
commit
1b4167816c
  1. 21
      apps/client/src/app/components/home-summary/home-summary.component.ts

21
apps/client/src/app/components/home-summary/home-summary.component.ts

@ -30,15 +30,16 @@ import { DeviceDetectorService } from 'ngx-device-detector';
templateUrl: './home-summary.html'
})
export class GfHomeSummaryComponent implements OnInit {
public deviceType: string;
public hasImpersonationId: boolean;
public hasPermissionForSubscription: boolean;
public hasPermissionToUpdateUserSettings: boolean;
public info: InfoItem;
public isLoading = true;
public snackBarRef: MatSnackBarRef<TextOnlySnackBar>;
public summary: PortfolioSummary;
public user: User;
protected deviceType: string;
protected hasImpersonationId: boolean;
protected hasPermissionToUpdateUserSettings: boolean;
protected isLoading = true;
protected summary: PortfolioSummary;
protected user: User;
private hasPermissionForSubscription: boolean;
private info: InfoItem;
private snackBarRef: MatSnackBarRef<TextOnlySnackBar>;
private readonly changeDetectorRef = inject(ChangeDetectorRef);
private readonly dataService = inject(DataService);
@ -84,7 +85,7 @@ export class GfHomeSummaryComponent implements OnInit {
});
}
public onChangeEmergencyFund(emergencyFund: number) {
protected onChangeEmergencyFund(emergencyFund: number) {
this.dataService
.putUserSetting({ emergencyFund })
.pipe(takeUntilDestroyed(this.destroyRef))

Loading…
Cancel
Save