mirror of
https://github.com/valitydev/control-center.git
synced 2024-11-06 02:25:17 +00:00
IMP-241: Fix create deposits by file (#367)
This commit is contained in:
parent
e4f044193c
commit
6876deeab4
8
package-lock.json
generated
8
package-lock.json
generated
@ -26,7 +26,7 @@
|
||||
"@vality/fistful-proto": "2.0.1-6600be9.0",
|
||||
"@vality/machinegun-proto": "1.0.0",
|
||||
"@vality/magista-proto": "2.0.2-28d11b9.0",
|
||||
"@vality/ng-core": "17.2.1-pr-62-bd071a2.0",
|
||||
"@vality/ng-core": "17.2.1-pr-64-42bc8db.0",
|
||||
"@vality/ng-thrift": "17.0.1-pr-5-2ce0f11.0",
|
||||
"@vality/payout-manager-proto": "2.0.1-eb4091a.0",
|
||||
"@vality/repairer-proto": "2.0.2-07b73e9.0",
|
||||
@ -6462,9 +6462,9 @@
|
||||
"integrity": "sha512-BsDy5ejotfTtUlwuoX3kz+PYJ5NSTW6m5ZRGv+p5HaKXSjR7tserPdv0q133Wp4T+sg0ED0Qr9Peqsrn+9XlDQ=="
|
||||
},
|
||||
"node_modules/@vality/ng-core": {
|
||||
"version": "17.2.1-pr-62-bd071a2.0",
|
||||
"resolved": "https://registry.npmjs.org/@vality/ng-core/-/ng-core-17.2.1-pr-62-bd071a2.0.tgz",
|
||||
"integrity": "sha512-/zLUC/ogUZbIQEuciYDibCBMA3USixuPtm2aWtp7E+ppNJtpd56Wu4py/BTCrDUMjlt0kDog8aqqin1snqGscA==",
|
||||
"version": "17.2.1-pr-64-42bc8db.0",
|
||||
"resolved": "https://registry.npmjs.org/@vality/ng-core/-/ng-core-17.2.1-pr-64-42bc8db.0.tgz",
|
||||
"integrity": "sha512-DWninh/LAka4i5vaQ/8TOCigTwEDdsMMe5tMg1F8N+xE8OuxuoqQPBjnpzFjULYL59fJg8ghppy21ikCY6ffUw==",
|
||||
"dependencies": {
|
||||
"@angular/material-date-fns-adapter": "^17.2.0",
|
||||
"@ng-matero/extensions": "^17.1.0",
|
||||
|
@ -34,7 +34,7 @@
|
||||
"@vality/fistful-proto": "2.0.1-6600be9.0",
|
||||
"@vality/machinegun-proto": "1.0.0",
|
||||
"@vality/magista-proto": "2.0.2-28d11b9.0",
|
||||
"@vality/ng-core": "17.2.1-pr-62-bd071a2.0",
|
||||
"@vality/ng-core": "17.2.1-pr-64-42bc8db.0",
|
||||
"@vality/ng-thrift": "17.0.1-pr-5-2ce0f11.0",
|
||||
"@vality/payout-manager-proto": "2.0.1-eb4091a.0",
|
||||
"@vality/repairer-proto": "2.0.2-07b73e9.0",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Component, DestroyRef } from '@angular/core';
|
||||
import { Component, DestroyRef, runInInjectionContext, Injector } from '@angular/core';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
import { MatButton } from '@angular/material/button';
|
||||
import { DepositState } from '@vality/fistful-proto/internal/deposit';
|
||||
@ -7,8 +7,8 @@ import {
|
||||
DialogSuperclass,
|
||||
NotifyLogService,
|
||||
DEFAULT_DIALOG_CONFIG,
|
||||
forkJoinToResult,
|
||||
DialogModule,
|
||||
forkJoinToResult,
|
||||
} from '@vality/ng-core';
|
||||
import { BehaviorSubject } from 'rxjs';
|
||||
|
||||
@ -40,6 +40,7 @@ export class CreateDepositsByFileDialogComponent extends DialogSuperclass<
|
||||
private depositManagementService: DepositManagementService,
|
||||
private log: NotifyLogService,
|
||||
private destroyRef: DestroyRef,
|
||||
private injector: Injector,
|
||||
) {
|
||||
super();
|
||||
}
|
||||
@ -47,7 +48,11 @@ export class CreateDepositsByFileDialogComponent extends DialogSuperclass<
|
||||
create() {
|
||||
const selected = this.selected;
|
||||
forkJoinToResult(
|
||||
selected.map((c) => this.depositManagementService.Create(...getCreateDepositArgs(c))),
|
||||
selected.map((c) =>
|
||||
this.depositManagementService.Create(
|
||||
...runInInjectionContext(this.injector, () => getCreateDepositArgs(c)),
|
||||
),
|
||||
),
|
||||
this.progress$,
|
||||
)
|
||||
.pipe(takeUntilDestroyed(this.destroyRef))
|
||||
|
Loading…
Reference in New Issue
Block a user