From e047b1f0c2e57e8ec603284378e8efbbfb7bee7c Mon Sep 17 00:00:00 2001 From: Rinat Arsaev <11846445+A77AY@users.noreply.github.com> Date: Thu, 27 Jul 2023 12:18:23 +0400 Subject: [PATCH] MI-8,TD-678: Hide payouts, claims; hide calc amount: deposits, withdrawals (#136) --- src/app/api/wallet/downloads.service.ts | 10 +++++ src/app/api/wallet/index.ts | 1 + .../payment-section-routing.module.ts | 14 +++---- .../utils/to-navbar-item-config.ts | 13 +++--- src/app/sections/sections-routing.module.ts | 8 ++-- .../deposit-details.component.html | 41 ++++++++----------- .../deposit-details/deposit-details.module.ts | 3 +- .../webhook-list/webhook-list.module.ts | 2 + .../webhook-row/webhook-row.component.html | 2 +- .../webhook-row/webhook-row.component.ts | 16 +------- .../wallet-details.component.html | 8 +--- .../wallets-main-info.component.html | 27 ++++++++---- .../wallets-main-info.component.ts | 21 +++++++++- .../wallets-main-info.module.ts | 14 ++++++- .../withdrawal-details.component.html | 6 +-- .../deposit-revert-details.component.html | 8 ++-- src/app/shared/pipes/identity-name.pipe.ts | 25 +++++++++++ .../sections-links/section-links.service.ts | 12 +++--- src/assets/i18n/services/en.json | 1 - src/assets/i18n/services/ru.json | 1 - src/assets/i18n/wallet-section/en.json | 3 +- src/assets/i18n/wallet-section/ru.json | 3 +- src/environments/index.ts | 4 +- 23 files changed, 146 insertions(+), 97 deletions(-) create mode 100644 src/app/api/wallet/downloads.service.ts create mode 100644 src/app/shared/pipes/identity-name.pipe.ts diff --git a/src/app/api/wallet/downloads.service.ts b/src/app/api/wallet/downloads.service.ts new file mode 100644 index 00000000..a54ade83 --- /dev/null +++ b/src/app/api/wallet/downloads.service.ts @@ -0,0 +1,10 @@ +import { Injectable } from '@angular/core'; +import { DownloadsService as ApiService } from '@vality/swag-wallet'; + +import { createApi } from '../utils'; +import { PartyIdExtension } from '../utils/extensions'; + +@Injectable({ + providedIn: 'root', +}) +export class DownloadsService extends createApi(ApiService, [PartyIdExtension]) {} diff --git a/src/app/api/wallet/index.ts b/src/app/api/wallet/index.ts index 208dbeda..fafe2bac 100644 --- a/src/app/api/wallet/index.ts +++ b/src/app/api/wallet/index.ts @@ -6,3 +6,4 @@ export * from './identities.service'; export * from './deposits.service'; export * from './wallet-dictionary.service'; export * from './reports.service'; +export * from './downloads.service'; diff --git a/src/app/sections/payment-section/payment-section-routing.module.ts b/src/app/sections/payment-section/payment-section-routing.module.ts index 0f3aaaa4..1aede2c8 100644 --- a/src/app/sections/payment-section/payment-section-routing.module.ts +++ b/src/app/sections/payment-section/payment-section-routing.module.ts @@ -41,13 +41,13 @@ const PAYMENT_SECTION_ROUTES: Routes = [ }, [RoleAccessName.Reports] ), - createPrivateRoute( - { - path: 'payouts', - loadChildren: () => import('./payouts/payouts.module').then((m) => m.PayoutsModule), - }, - [RoleAccessName.ViewPayouts] - ), + // createPrivateRoute( + // { + // path: 'payouts', + // loadChildren: () => import('./payouts/payouts.module').then((m) => m.PayoutsModule), + // }, + // [RoleAccessName.ViewPayouts] + // ), { path: 'integrations', loadChildren: () => import('./integrations/integrations.module').then((m) => m.IntegrationsModule), diff --git a/src/app/sections/payment-section/utils/to-navbar-item-config.ts b/src/app/sections/payment-section/utils/to-navbar-item-config.ts index dda1ef11..40efec33 100644 --- a/src/app/sections/payment-section/utils/to-navbar-item-config.ts +++ b/src/app/sections/payment-section/utils/to-navbar-item-config.ts @@ -22,7 +22,6 @@ export const toNavbarItemConfig = ({ analytics, integrations, operations, - payouts, reports, }: Record< 'shops' | 'analytics' | 'integrations' | 'operations' | 'payouts' | 'reports', @@ -46,12 +45,12 @@ export const toNavbarItemConfig = ({ label: operations, roles: [RoleAccessName.ViewPayments, RoleAccessName.ViewInvoices, RoleAccessName.ViewRefunds], }, - { - routerLink: NavbarRouterLink.Payouts, - icon: BootstrapIconName.ArrowRightCircle, - label: payouts, - roles: [RoleAccessName.ViewPayouts], - }, + // { + // routerLink: NavbarRouterLink.Payouts, + // icon: BootstrapIconName.ArrowRightCircle, + // label: payouts, + // roles: [RoleAccessName.ViewPayouts], + // }, { routerLink: NavbarRouterLink.Reports, icon: BootstrapIconName.FileText, diff --git a/src/app/sections/sections-routing.module.ts b/src/app/sections/sections-routing.module.ts index ddcafc26..6d2b4172 100644 --- a/src/app/sections/sections-routing.module.ts +++ b/src/app/sections/sections-routing.module.ts @@ -2,10 +2,10 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; const ROUTES: Routes = [ - { - path: 'claim-section', - loadChildren: () => import('./claim-section').then((m) => m.ClaimSectionModule), - }, + // { + // path: 'claim-section', + // loadChildren: () => import('./claim-section').then((m) => m.ClaimSectionModule), + // }, { path: 'payment-section', loadChildren: () => import('./payment-section').then((m) => m.PaymentSectionModule), diff --git a/src/app/sections/wallet-section/deposits/deposit-panels/deposit-details/deposit-details.component.html b/src/app/sections/wallet-section/deposits/deposit-panels/deposit-details/deposit-details.component.html index 2ec3ae38..d2ab7d38 100644 --- a/src/app/sections/wallet-section/deposits/deposit-panels/deposit-details/deposit-details.component.html +++ b/src/app/sections/wallet-section/deposits/deposit-panels/deposit-details/deposit-details.component.html @@ -1,37 +1,28 @@ -