Browse Source

fix(client): enforce encapsulation

pull/6892/head
KenTandrian 1 week ago
parent
commit
d309ed8e0c
  1. 9
      apps/client/src/app/components/admin-platform/admin-platform.component.ts

9
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<Platform>();
public platforms: Platform[];
protected dataSource = new MatTableDataSource<Platform>();
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 }
});

Loading…
Cancel
Save