mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 01:04:28 +01:00
Reset outspends cache when switching to new tx page.
fixes #1613 fixes #1164
This commit is contained in:
parent
b50f9b4e2d
commit
3be67ea023
@ -173,7 +173,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
|
|
||||||
<app-transactions-list [transactions]="transactions"></app-transactions-list>
|
<app-transactions-list [transactions]="transactions" [paginated]="true"></app-transactions-list>
|
||||||
|
|
||||||
<ng-template [ngIf]="isLoadingTransactions">
|
<ng-template [ngIf]="isLoadingTransactions">
|
||||||
<div class="text-center mb-4" class="tx-skeleton">
|
<div class="text-center mb-4" class="tx-skeleton">
|
||||||
|
@ -22,6 +22,7 @@ export class TransactionsListComponent implements OnInit, OnChanges {
|
|||||||
@Input() showConfirmations = false;
|
@Input() showConfirmations = false;
|
||||||
@Input() transactionPage = false;
|
@Input() transactionPage = false;
|
||||||
@Input() errorUnblinded = false;
|
@Input() errorUnblinded = false;
|
||||||
|
@Input() paginated = false;
|
||||||
@Input() outputIndex: number;
|
@Input() outputIndex: number;
|
||||||
@Input() address: string = '';
|
@Input() address: string = '';
|
||||||
|
|
||||||
@ -84,6 +85,9 @@ export class TransactionsListComponent implements OnInit, OnChanges {
|
|||||||
if (!this.transactions || !this.transactions.length) {
|
if (!this.transactions || !this.transactions.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (this.paginated) {
|
||||||
|
this.outspends = [];
|
||||||
|
}
|
||||||
if (this.outputIndex) {
|
if (this.outputIndex) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const assetBoxElements = document.getElementsByClassName('assetBox');
|
const assetBoxElements = document.getElementsByClassName('assetBox');
|
||||||
|
Loading…
Reference in New Issue
Block a user