From 8974d568b908d09e226fdf69391f39b7faa7a2e4 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Sat, 4 Apr 2026 16:33:53 +0700 Subject: [PATCH] feat(client): change public fields and methods to protected --- .../create-or-update-account-dialog.component.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts index 562147750..53d8380e1 100644 --- a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts +++ b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts @@ -51,10 +51,10 @@ import { CreateOrUpdateAccountDialogParams } from './interfaces/interfaces'; templateUrl: 'create-or-update-account-dialog.html' }) export class GfCreateOrUpdateAccountDialogComponent { - public accountForm: FormGroup; - public currencies: string[] = []; - public filteredPlatforms: Observable | undefined; - public platforms: Platform[] = []; + protected accountForm: FormGroup; + protected currencies: string[] = []; + protected filteredPlatforms: Observable | undefined; + protected platforms: Platform[] = []; protected readonly data = inject(MAT_DIALOG_DATA); @@ -103,7 +103,7 @@ export class GfCreateOrUpdateAccountDialogComponent { }); } - public autoCompleteCheck() { + protected autoCompleteCheck() { const inputValue = this.accountForm.get('platformId')?.value; if (typeof inputValue === 'string') { @@ -117,15 +117,15 @@ export class GfCreateOrUpdateAccountDialogComponent { } } - public displayFn(platform: Platform) { + protected displayFn(platform: Platform) { return platform?.name ?? ''; } - public onCancel() { + protected onCancel() { this.dialogRef.close(); } - public async onSubmit() { + protected async onSubmit() { const account: CreateAccountDto | UpdateAccountDto = { balance: this.accountForm.get('balance')?.value, comment: this.accountForm.get('comment')?.value || null,