From 73f241e9c3384cdc1c9d01233bd3673cc3faa140 Mon Sep 17 00:00:00 2001 From: nymkappa <1612910616@pm.me> Date: Wed, 10 Apr 2024 13:53:21 +0900 Subject: [PATCH] Revert "Disable accelerate button after submission" This reverts commit e55b1740db5d5d2ba9a15d201400abdad08787e7. --- .../accelerate-preview/accelerate-preview.component.html | 4 ++-- .../accelerate-preview/accelerate-preview.component.ts | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/components/accelerate-preview/accelerate-preview.component.html b/frontend/src/app/components/accelerate-preview/accelerate-preview.component.html index de834868d..b3bd8a868 100644 --- a/frontend/src/app/components/accelerate-preview/accelerate-preview.component.html +++ b/frontend/src/app/components/accelerate-preview/accelerate-preview.component.html @@ -26,7 +26,7 @@ -
+
You are currently on the waitlist
@@ -286,7 +286,7 @@
- @if (!hideCashApp && !(error || processing || showSuccess) && paymentType === 'cashapp') { + @if (!hideCashApp && paymentType === 'cashapp') {
Accelerate for with
diff --git a/frontend/src/app/components/accelerate-preview/accelerate-preview.component.ts b/frontend/src/app/components/accelerate-preview/accelerate-preview.component.ts index e35f469eb..19edf9b7e 100644 --- a/frontend/src/app/components/accelerate-preview/accelerate-preview.component.ts +++ b/frontend/src/app/components/accelerate-preview/accelerate-preview.component.ts @@ -48,7 +48,6 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges math = Math; error = ''; - processing = false; showSuccess = false; estimateSubscription: Subscription; accelerationSubscription: Subscription; @@ -246,21 +245,18 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges if (this.accelerationSubscription) { this.accelerationSubscription.unsubscribe(); } - this.processing = true; this.accelerationSubscription = this.servicesApiService.accelerate$( this.tx.txid, this.userBid, this.accelerationUUID ).subscribe({ next: () => { - this.processing = false; this.audioService.playSound('ascend-chime-cartoon'); this.showSuccess = true; this.scrollToPreviewWithTimeout('successAlert', 'center'); this.estimateSubscription.unsubscribe(); }, error: (response) => { - this.processing = false; if (response.status === 403 && response.error === 'not_available') { this.error = 'waitlisted'; } else { @@ -363,14 +359,12 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges that.accelerationUUID ).subscribe({ next: () => { - this.processing = false; that.audioService.playSound('ascend-chime-cartoon'); that.showSuccess = true; that.scrollToPreviewWithTimeout('successAlert', 'center'); that.estimateSubscription.unsubscribe(); }, error: (response) => { - this.processing = false; if (response.status === 403 && response.error === 'not_available') { that.error = 'waitlisted'; } else { @@ -407,7 +401,6 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges submitCashappPay(): void { if (this.cashappSubmit) { this.cashappSubmit?.begin(); - this.processing = true; } }