fix cpfp button

This commit is contained in:
Mononaut 2024-10-23 12:28:40 +00:00
parent 23475c7a1b
commit 96c2b0a2f7
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E
2 changed files with 6 additions and 1 deletions

View File

@ -267,7 +267,7 @@
}
</div>
@if (hasCpfp) {
<button type="button" class="btn btn-outline-info btn-sm btn-small-height float-right" (click)="showCpfpDetails = !showCpfpDetails">CPFP <fa-icon [icon]="['fas', 'info-circle']" [fixedWidth]="true"></fa-icon></button>
<button type="button" class="btn btn-outline-info btn-sm btn-small-height float-right" (click)="toggleCpfp()">CPFP <fa-icon [icon]="['fas', 'info-circle']" [fixedWidth]="true"></fa-icon></button>
}
</td>
</tr>

View File

@ -41,6 +41,7 @@ export class TransactionDetailsComponent implements OnInit {
@Input() ETA$: Observable<ETA>;
@Output() accelerateClicked = new EventEmitter<boolean>();
@Output() toggleCpfp$ = new EventEmitter<void>();
constructor() {}
@ -49,4 +50,8 @@ export class TransactionDetailsComponent implements OnInit {
onAccelerateClicked(): void {
this.accelerateClicked.emit(true);
}
toggleCpfp(): void {
this.toggleCpfp$.emit();
}
}