Merge pull request #4476 from mempool/nymkappa/fix-waitlist-message
[accel preview] only show waitlist message if logged in
This commit is contained in:
commit
7c83b85e3e
@ -28,8 +28,8 @@
|
|||||||
<ng-container *ngIf="estimate">
|
<ng-container *ngIf="estimate">
|
||||||
<div [class]="{estimateDisabled: error}">
|
<div [class]="{estimateDisabled: error}">
|
||||||
|
|
||||||
<div *ngIf="!estimate.hasAccess">
|
<div *ngIf="user && !estimate.hasAccess">
|
||||||
<div class="alert alert-mempool">You are currently on the wait list</div>
|
<div class="alert alert-mempool">You are currently on the waitlist</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h5>Your transaction</h5>
|
<h5>Your transaction</h5>
|
||||||
@ -235,7 +235,7 @@
|
|||||||
|
|
||||||
<div class="row mb-3" *ngIf="isLoggedIn()">
|
<div class="row mb-3" *ngIf="isLoggedIn()">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="d-flex justify-content-end" *ngIf="estimate.hasAccess">
|
<div class="d-flex justify-content-end" *ngIf="user && estimate.hasAccess">
|
||||||
<button class="btn btn-sm btn-primary btn-success" style="width: 150px" (click)="accelerate()">Accelerate</button>
|
<button class="btn btn-sm btn-primary btn-success" style="width: 150px" (click)="accelerate()">Accelerate</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -56,6 +56,7 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges
|
|||||||
userBid = 0;
|
userBid = 0;
|
||||||
selectFeeRateIndex = 1;
|
selectFeeRateIndex = 1;
|
||||||
isMobile: boolean = window.innerWidth <= 767.98;
|
isMobile: boolean = window.innerWidth <= 767.98;
|
||||||
|
user: any = undefined;
|
||||||
|
|
||||||
maxRateOptions: RateOption[] = [];
|
maxRateOptions: RateOption[] = [];
|
||||||
|
|
||||||
@ -78,6 +79,8 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.user = this.storageService.getAuth()?.user ?? null;
|
||||||
|
|
||||||
this.estimateSubscription = this.apiService.estimate$(this.tx.txid).pipe(
|
this.estimateSubscription = this.apiService.estimate$(this.tx.txid).pipe(
|
||||||
tap((response) => {
|
tap((response) => {
|
||||||
if (response.status === 204) {
|
if (response.status === 204) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user