[tx] start adding acceleration preview

This commit is contained in:
nymkappa
2023-08-24 14:17:31 +02:00
parent 3aa938a94b
commit c89e283c8e
10 changed files with 112 additions and 16 deletions

View File

@@ -0,0 +1,24 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-accelerator-preview',
templateUrl: 'accelerate-preview.component.html',
styleUrls: ['accelerate-preview.component.scss']
})
export class AcceleratePreviewComponent implements OnInit {
constructor(
private apiService: ApiService
) { }
ngOnInit() {
this.apiService.estimate$(this.txId).subscribe((estimate) => {
console.log(estimate.body);
document.getElementById('acceleratePreviewAnchor').scrollIntoView({
behavior: 'smooth',
inline: 'center',
block: 'center',
});
})
}
}