From dff811f61562e0c84dcadc3f4508a28f6af0a0ab Mon Sep 17 00:00:00 2001
From: nymkappa <1612910616@pm.me>
Date: Sun, 14 Apr 2024 13:54:25 +0900
Subject: [PATCH 1/2] [accelerator] re-add missing accelerator button on
mobile, set location.hash when click on accelerate button
---
.../src/app/components/transaction/transaction.component.html | 4 ++--
.../src/app/components/transaction/transaction.component.ts | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html
index da8164e16..7a7f808c7 100644
--- a/frontend/src/app/components/transaction/transaction.component.html
+++ b/frontend/src/app/components/transaction/transaction.component.html
@@ -540,8 +540,8 @@
} @else {
- @if (!isMobile && !tx.acceleration && acceleratorAvailable && accelerateCtaType === 'button' && !tx?.acceleration) {
- Accelerate
+ @if (!tx.acceleration && acceleratorAvailable && accelerateCtaType === 'button' && !tx?.acceleration) {
+ Accelerate
}
}
diff --git a/frontend/src/app/components/transaction/transaction.component.ts b/frontend/src/app/components/transaction/transaction.component.ts
index 0be28f951..5cea17f3c 100644
--- a/frontend/src/app/components/transaction/transaction.component.ts
+++ b/frontend/src/app/components/transaction/transaction.component.ts
@@ -629,6 +629,8 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
if (!this.txId) {
return;
}
+
+ document.location.hash = '#accelerate';
this.enterpriseService.goal(8);
this.showAccelerationSummary = true && this.acceleratorAvailable;
this.scrollIntoAccelPreview = !this.scrollIntoAccelPreview;
From e9afc4ec0fa2a2fcd61b6d00aeffe5211a033d29 Mon Sep 17 00:00:00 2001
From: nymkappa <1612910616@pm.me>
Date: Sun, 14 Apr 2024 13:55:49 +0900
Subject: [PATCH 2/2] remove duplicated condition
---
.../src/app/components/transaction/transaction.component.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html
index 7a7f808c7..fcc8c3cae 100644
--- a/frontend/src/app/components/transaction/transaction.component.html
+++ b/frontend/src/app/components/transaction/transaction.component.html
@@ -540,7 +540,7 @@
} @else {
- @if (!tx.acceleration && acceleratorAvailable && accelerateCtaType === 'button' && !tx?.acceleration) {
+ @if (!tx?.acceleration && acceleratorAvailable && accelerateCtaType === 'button') {
Accelerate
}