From ab911d5c9eca061bbdd85a71eceb919c3a95deb5 Mon Sep 17 00:00:00 2001 From: nymkappa <1612910616@pm.me> Date: Thu, 17 Aug 2023 14:28:33 +0200 Subject: [PATCH] [tx] fix eta css with accelerate button --- .../components/transaction/transaction.component.html | 10 ++++++---- .../components/transaction/transaction.component.ts | 3 +++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html index 133bcaa1d..ddbfd0bb3 100644 --- a/frontend/src/app/components/transaction/transaction.component.html +++ b/frontend/src/app/components/transaction/transaction.component.html @@ -99,9 +99,10 @@ - + In several hours (or more) - Accelerate + + Accelerate @@ -109,9 +110,10 @@ - + - Accelerate + + Accelerate diff --git a/frontend/src/app/components/transaction/transaction.component.ts b/frontend/src/app/components/transaction/transaction.component.ts index f1f3850e4..d12be2084 100644 --- a/frontend/src/app/components/transaction/transaction.component.ts +++ b/frontend/src/app/components/transaction/transaction.component.ts @@ -82,6 +82,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy { blockConversion: Price; tooltipPosition: { x: number, y: number }; isMobile: boolean; + acceleratorAvailable: boolean = false; featuresEnabled: boolean; segwitEnabled: boolean; @@ -107,6 +108,8 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy { ) {} ngOnInit() { + this.acceleratorAvailable = this.stateService.env.OFFICIAL_MEMPOOL_SPACE && this.stateService.env.ACCELERATOR && this.stateService.network === ''; + this.websocketService.want(['blocks', 'mempool-blocks']); this.stateService.networkChanged$.subscribe( (network) => (this.network = network)