From c2e28c7150582f149630045304bda9641eecf5de Mon Sep 17 00:00:00 2001 From: Nazar Usov Date: Wed, 15 May 2024 18:35:03 +0300 Subject: [PATCH 1/3] Fix view for transaction --- .../wallet/tabs/history/history.component.ts | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/html_source/src/app/pages/wallet/tabs/history/history.component.ts b/html_source/src/app/pages/wallet/tabs/history/history.component.ts index 6d151053..ae9dde0a 100644 --- a/html_source/src/app/pages/wallet/tabs/history/history.component.ts +++ b/html_source/src/app/pages/wallet/tabs/history/history.component.ts @@ -1,7 +1,7 @@ import { Component, NgZone, OnDestroy, OnInit } from '@angular/core'; import { VariablesService } from '@parts/services/variables.service'; import { ActivatedRoute } from '@angular/router'; -import { Subtransfer, Transaction } from '@api/models/transaction.model'; +import { Subtransfer, Subtransfers, Transaction } from '@api/models/transaction.model'; import BigNumber from 'bignumber.js'; import { PaginationService } from '@store/pagination/pagination.service'; import { PaginationStore } from '@store/pagination/pagination.store'; @@ -169,6 +169,17 @@ import { zanoAssetInfo } from '@parts/data/assets'; + +
+ + + {{ 'HISTORY.RECEIVED' | translate }} +
+
+
@@ -220,6 +231,10 @@ import { zanoAssetInfo } from '@parts/data/assets'; + + + {{ 0 | intToMoney }} {{ variablesService.defaultCurrency }} + @@ -589,6 +604,10 @@ export class HistoryComponent implements OnInit, OnDestroy { }); } + hasZano(subtransfers: Subtransfers): boolean { + return Boolean(subtransfers.find(({ asset_id }) => asset_id === zanoAssetInfo.asset_id)); + } + setPage(pageNumber: number): void { // this is will allow pagination for wallets that was open from existed wallets' if (pageNumber === this.variablesService.currentWallet.currentPage) { From 146971989ab4f2211de065c5a54e5f6121df7bfd Mon Sep 17 00:00:00 2001 From: Nazar Usov Date: Thu, 16 May 2024 12:26:43 +0300 Subject: [PATCH 2/3] Fix view for transaction for 16 and hide button migrate for wallets (auditable, watch_only) --- .../src/app/pages/wallet/tabs/history/history.component.ts | 2 +- html_source/src/app/pages/wallet/wallet/wallet.component.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/html_source/src/app/pages/wallet/tabs/history/history.component.ts b/html_source/src/app/pages/wallet/tabs/history/history.component.ts index ae9dde0a..fe17ea7c 100644 --- a/html_source/src/app/pages/wallet/tabs/history/history.component.ts +++ b/html_source/src/app/pages/wallet/tabs/history/history.component.ts @@ -233,7 +233,7 @@ import { zanoAssetInfo } from '@parts/data/assets'; - {{ 0 | intToMoney }} {{ variablesService.defaultCurrency }} + {{ transaction.fee | intToMoney }} {{ variablesService.defaultCurrency }} diff --git a/html_source/src/app/pages/wallet/wallet/wallet.component.ts b/html_source/src/app/pages/wallet/wallet/wallet.component.ts index 760ff8eb..050fb56d 100644 --- a/html_source/src/app/pages/wallet/wallet/wallet.component.ts +++ b/html_source/src/app/pages/wallet/wallet/wallet.component.ts @@ -186,7 +186,8 @@ const objTabs: { [key in TabNameKeys]: Tab } = {
- + +
@@ -200,6 +201,7 @@ const objTabs: { [key in TabNameKeys]: Tab } = {
+