From d309ed8e0ccf44c87b85bba5522fc9b7e137d8b9 Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Sun, 17 May 2026 16:05:35 +0700 Subject: [PATCH] fix(client): enforce encapsulation --- .../admin-platform/admin-platform.component.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/client/src/app/components/admin-platform/admin-platform.component.ts b/apps/client/src/app/components/admin-platform/admin-platform.component.ts index 8c5beed1e..b583d7c87 100644 --- a/apps/client/src/app/components/admin-platform/admin-platform.component.ts +++ b/apps/client/src/app/components/admin-platform/admin-platform.component.ts @@ -58,10 +58,9 @@ import { CreateOrUpdatePlatformDialogParams } from './create-or-update-platform- export class GfAdminPlatformComponent implements OnInit { @Input() locale = getLocale(); - public dataSource = new MatTableDataSource(); - public platforms: Platform[]; - + protected dataSource = new MatTableDataSource(); protected readonly displayedColumns = ['name', 'url', 'accounts', 'actions']; + protected platforms: Platform[]; private readonly deviceType = computed( () => this.deviceDetectorService.deviceInfo().deviceType @@ -107,7 +106,7 @@ export class GfAdminPlatformComponent implements OnInit { this.fetchPlatforms(); } - public onDeletePlatform(aId: string) { + protected onDeletePlatform(aId: string) { this.notificationService.confirm({ confirmFn: () => { this.deletePlatform(aId); @@ -117,7 +116,7 @@ export class GfAdminPlatformComponent implements OnInit { }); } - public onUpdatePlatform({ id }: Platform) { + protected onUpdatePlatform({ id }: Platform) { this.router.navigate([], { queryParams: { editPlatformDialog: true, platformId: id } });