Add output ID to transaction info

fixes #413
This commit is contained in:
softsimon
2021-10-19 23:24:12 +04:00
parent 768378379e
commit f2012b45e3
5 changed files with 28 additions and 15 deletions

View File

@@ -22,6 +22,7 @@ export class TransactionsListComponent implements OnInit, OnChanges {
@Input() showConfirmations = false;
@Input() transactionPage = false;
@Input() errorUnblinded = false;
@Input() outputIndex: number;
@Output() loadMore = new EventEmitter();
@@ -51,6 +52,14 @@ export class TransactionsListComponent implements OnInit, OnChanges {
if (!this.transactions || !this.transactions.length) {
return;
}
if (this.outputIndex) {
setTimeout(() => {
const assetBoxElements = document.getElementsByClassName('assetBox');
if (assetBoxElements && assetBoxElements[0]) {
assetBoxElements[0].scrollIntoView();
}
}, 10);
}
const observableObject = {};
this.transactions.forEach((tx, i) => {
tx['@voutLimit'] = true;