mirror of
https://github.com/mempool/mempool.git
synced 2025-10-06 00:03:55 +02:00
Crop large OP_RETURN data in tx details section
This commit is contained in:
@@ -62,6 +62,9 @@ export class TransactionsListComponent implements OnInit, OnChanges, OnDestroy {
|
||||
outputRowLimit: number = 12;
|
||||
showFullScript: { [vinIndex: number]: boolean } = {};
|
||||
showFullWitness: { [vinIndex: number]: { [witnessIndex: number]: boolean } } = {};
|
||||
showFullScriptPubkeyAsm: { [voutIndex: number]: boolean } = {};
|
||||
showFullScriptPubkeyHex: { [voutIndex: number]: boolean } = {};
|
||||
showFullOpReturnData: { [voutIndex: number]: boolean } = {};
|
||||
showOrdData: { [key: string]: { show: boolean; inscriptions?: Inscription[]; runestone?: Runestone, runeInfo?: { [id: string]: { etching: Etching; txid: string; } }; } } = {};
|
||||
similarityMatches: Map<string, Map<string, { score: number, match: AddressMatch, group: number }>> = new Map();
|
||||
|
||||
@@ -516,6 +519,18 @@ export class TransactionsListComponent implements OnInit, OnChanges, OnDestroy {
|
||||
this.showFullWitness[vinIndex][witnessIndex] = !this.showFullWitness[vinIndex][witnessIndex];
|
||||
}
|
||||
|
||||
toggleShowFullScriptPubkeyAsm(voutIndex: number): void {
|
||||
this.showFullScriptPubkeyAsm[voutIndex] = !this.showFullScriptPubkeyAsm[voutIndex];
|
||||
}
|
||||
|
||||
toggleShowFullScriptPubkeyHex(voutIndex: number): void {
|
||||
this.showFullScriptPubkeyHex[voutIndex] = !this.showFullScriptPubkeyHex[voutIndex];
|
||||
}
|
||||
|
||||
toggleShowFullOpReturnData(voutIndex: number): void {
|
||||
this.showFullOpReturnData[voutIndex] = !this.showFullOpReturnData[voutIndex];
|
||||
}
|
||||
|
||||
toggleOrdData(txid: string, type: 'vin' | 'vout', index: number) {
|
||||
const tx = this.transactions.find((tx) => tx.txid === txid);
|
||||
if (!tx) {
|
||||
|
Reference in New Issue
Block a user