Browse Source

fix(client): enforce immutability

pull/6885/head
KenTandrian 1 week ago
parent
commit
94d3008d81
  1. 32
      apps/client/src/app/components/admin-market-data/admin-market-data.component.ts

32
apps/client/src/app/components/admin-market-data/admin-market-data.component.ts

@ -101,7 +101,7 @@ export class GfAdminMarketDataComponent implements AfterViewInit, OnInit {
@ViewChild(MatPaginator) private paginator: MatPaginator; @ViewChild(MatPaginator) private paginator: MatPaginator;
@ViewChild(MatSort) private sort: MatSort; @ViewChild(MatSort) private sort: MatSort;
protected allFilters: Filter[] = [ protected readonly allFilters: Filter[] = [
...Object.keys(AssetSubClass) ...Object.keys(AssetSubClass)
.filter((assetSubClass) => { .filter((assetSubClass) => {
return assetSubClass !== 'CASH'; return assetSubClass !== 'CASH';
@ -148,10 +148,10 @@ export class GfAdminMarketDataComponent implements AfterViewInit, OnInit {
]; ];
protected dataSource = new MatTableDataSource<AdminMarketDataItem>(); protected dataSource = new MatTableDataSource<AdminMarketDataItem>();
protected defaultDateFormat: string; protected defaultDateFormat: string;
protected displayedColumns: string[] = []; protected readonly displayedColumns: string[] = [];
protected filters$ = new Subject<Filter[]>(); protected readonly filters$ = new Subject<Filter[]>();
protected isLoading = true; protected isLoading = true;
protected isUUID = isUUID; protected readonly isUUID = isUUID;
protected pageSize = DEFAULT_PAGE_SIZE; protected pageSize = DEFAULT_PAGE_SIZE;
protected placeholder = ''; protected placeholder = '';
protected selection: SelectionModel<AdminMarketDataItem>; protected selection: SelectionModel<AdminMarketDataItem>;
@ -161,20 +161,20 @@ export class GfAdminMarketDataComponent implements AfterViewInit, OnInit {
private activeFilters: Filter[] = []; private activeFilters: Filter[] = [];
private benchmarks: Partial<SymbolProfile>[]; private benchmarks: Partial<SymbolProfile>[];
private deviceType: string; private deviceType: string;
private hasPermissionForSubscription: boolean; private readonly hasPermissionForSubscription: boolean;
private info: InfoItem; private readonly info: InfoItem;
public constructor( public constructor(
protected adminMarketDataService: AdminMarketDataService, protected readonly adminMarketDataService: AdminMarketDataService,
private adminService: AdminService, private readonly adminService: AdminService,
private changeDetectorRef: ChangeDetectorRef, private readonly changeDetectorRef: ChangeDetectorRef,
private dataService: DataService, private readonly dataService: DataService,
private destroyRef: DestroyRef, private readonly destroyRef: DestroyRef,
private deviceDetectorService: DeviceDetectorService, private readonly deviceDetectorService: DeviceDetectorService,
private dialog: MatDialog, private readonly dialog: MatDialog,
private route: ActivatedRoute, private readonly route: ActivatedRoute,
private router: Router, private readonly router: Router,
private userService: UserService private readonly userService: UserService
) { ) {
this.info = this.dataService.fetchInfo(); this.info = this.dataService.fetchInfo();

Loading…
Cancel
Save