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 { export class GfAdminPlatformComponent implements OnInit {
@Input() locale = getLocale(); @Input() locale = getLocale();
public dataSource = new MatTableDataSource<Platform>(); protected dataSource = new MatTableDataSource<Platform>();
public platforms: Platform[];
protected readonly displayedColumns = ['name', 'url', 'accounts', 'actions']; protected readonly displayedColumns = ['name', 'url', 'accounts', 'actions'];
protected platforms: Platform[];
private readonly deviceType = computed( private readonly deviceType = computed(
() => this.deviceDetectorService.deviceInfo().deviceType () => this.deviceDetectorService.deviceInfo().deviceType
@ -107,7 +106,7 @@ export class GfAdminPlatformComponent implements OnInit {
this.fetchPlatforms(); this.fetchPlatforms();
} }
public onDeletePlatform(aId: string) { protected onDeletePlatform(aId: string) {
this.notificationService.confirm({ this.notificationService.confirm({
confirmFn: () => { confirmFn: () => {
this.deletePlatform(aId); this.deletePlatform(aId);
@ -117,7 +116,7 @@ export class GfAdminPlatformComponent implements OnInit {
}); });
} }
public onUpdatePlatform({ id }: Platform) { protected onUpdatePlatform({ id }: Platform) {
this.router.navigate([], { this.router.navigate([], {
queryParams: { editPlatformDialog: true, platformId: id } queryParams: { editPlatformDialog: true, platformId: id }
}); });

Loading…
Cancel
Save