From 908f6de4ac1ea947e393f6c449561cafa510bd9e Mon Sep 17 00:00:00 2001 From: Rinat Arsaev <11846445+A77AY@users.noreply.github.com> Date: Wed, 11 Oct 2023 23:08:50 +0700 Subject: [PATCH] Fix lazy loaded cols (#268) --- package-lock.json | 8 ++++---- package.json | 2 +- src/app/sections/wallets/wallets.component.ts | 15 +++++++++------ 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 117d1eba..9c232b0e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "@vality/dominant-cache-proto": "2.0.0", "@vality/fistful-proto": "2.0.1-ed97a0e.0", "@vality/magista-proto": "2.0.2-37b81e6.0", - "@vality/ng-core": "16.2.1-pr-40-5f4b5be.0", + "@vality/ng-core": "16.2.1-pr-40-adb1f52.0", "@vality/payout-manager-proto": "2.0.0", "@vality/repairer-proto": "2.0.2-f5e3b7a.0", "@vality/thrift-ts": "2.4.1-8ad5123.0", @@ -6000,9 +6000,9 @@ "integrity": "sha512-gJizpTWuB74L+XuJ+dUaxAwJDkycdnuVwrXWIl/NKcS7++/zgrgTpw+tM5/Te3rWqkkCnSxC1SK0C4aPbbtifg==" }, "node_modules/@vality/ng-core": { - "version": "16.2.1-pr-40-5f4b5be.0", - "resolved": "https://registry.npmjs.org/@vality/ng-core/-/ng-core-16.2.1-pr-40-5f4b5be.0.tgz", - "integrity": "sha512-J64AfaPDmExYO3PxrI9PgxDgNy5EbNhRyTWb5rkYHMhb+hkjVseuAZCgiEeNfTlGJ8qCZW1RoCseuFhjUSZnhw==", + "version": "16.2.1-pr-40-adb1f52.0", + "resolved": "https://registry.npmjs.org/@vality/ng-core/-/ng-core-16.2.1-pr-40-adb1f52.0.tgz", + "integrity": "sha512-dePHY8wWDE/lDthKkSibBrBQHTAbs1G8nHFiAnAR3Ntt6MOuWcti2qy9i9AxQ9nSN6o7yTzqS8S+GcbaVUYnpA==", "dependencies": { "@ng-matero/extensions": "^16.0.0", "@s-libs/js-core": "^16.0.0", diff --git a/package.json b/package.json index 9797bfc1..bfa23748 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "@vality/dominant-cache-proto": "2.0.0", "@vality/fistful-proto": "2.0.1-ed97a0e.0", "@vality/magista-proto": "2.0.2-37b81e6.0", - "@vality/ng-core": "16.2.1-pr-40-5f4b5be.0", + "@vality/ng-core": "16.2.1-pr-40-adb1f52.0", "@vality/payout-manager-proto": "2.0.0", "@vality/repairer-proto": "2.0.2-f5e3b7a.0", "@vality/thrift-ts": "2.4.1-8ad5123.0", diff --git a/src/app/sections/wallets/wallets.component.ts b/src/app/sections/wallets/wallets.component.ts index 2a6afeba..f831808e 100644 --- a/src/app/sections/wallets/wallets.component.ts +++ b/src/app/sections/wallets/wallets.component.ts @@ -2,15 +2,19 @@ import { Component, OnInit } from '@angular/core'; import { FormBuilder } from '@angular/forms'; import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy'; import { StatWallet } from '@vality/fistful-proto/internal/fistful_stat'; -import { clean, splitBySeparators, Column, QueryParamsService } from '@vality/ng-core'; +import { + clean, + splitBySeparators, + Column, + QueryParamsService, + NotifyLogService, +} from '@vality/ng-core'; import { of } from 'rxjs'; import { startWith, map, shareReplay, catchError } from 'rxjs/operators'; import { Memoize } from 'typescript-memoize'; -import { AccounterService } from '@cc/app/api/accounter'; import { WalletParams } from '@cc/app/api/fistful-stat/query-dsl/types/wallet'; import { ManagementService } from '@cc/app/api/wallet'; -import { NotificationErrorService } from '@cc/app/shared/services/notification-error'; import { FetchWalletsService } from './fetch-wallets.service'; @@ -45,8 +49,7 @@ export class WalletsComponent implements OnInit { private qp: QueryParamsService, private fb: FormBuilder, private walletManagementService: ManagementService, - private accounterService: AccounterService, - private errorService: NotificationErrorService, + private log: NotifyLogService, ) {} ngOnInit() { @@ -78,7 +81,7 @@ export class WalletsComponent implements OnInit { getBalance(walletId: string) { return this.walletManagementService.GetAccountBalance(walletId).pipe( catchError((err) => { - this.errorService.error(err); + this.log.error(err); return of({}); }), shareReplay({ refCount: true, bufferSize: 1 }),