[accelerator] show wait list message in preview when logged in with no access
This commit is contained in:
parent
c23a872887
commit
2cbc6783a4
@ -27,6 +27,11 @@
|
|||||||
|
|
||||||
<ng-container *ngIf="estimate">
|
<ng-container *ngIf="estimate">
|
||||||
<div [class]="{estimateDisabled: error}">
|
<div [class]="{estimateDisabled: error}">
|
||||||
|
|
||||||
|
<div *ngIf="!estimate.hasAccess">
|
||||||
|
<div class="alert alert-mempool">You are currently on the wait list</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<h5>Your transaction</h5>
|
<h5>Your transaction</h5>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
@ -230,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">
|
<div class="d-flex justify-content-end" *ngIf="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>
|
||||||
|
@ -93,7 +93,7 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges
|
|||||||
this.estimateSubscription.unsubscribe();
|
this.estimateSubscription.unsubscribe();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.estimate.userBalance <= 0) {
|
if (this.estimate.hasAccess === true && this.estimate.userBalance <= 0) {
|
||||||
if (this.isLoggedIn()) {
|
if (this.isLoggedIn()) {
|
||||||
this.error = `not_enough_balance`;
|
this.error = `not_enough_balance`;
|
||||||
this.scrollToPreviewWithTimeout('mempoolError', 'center');
|
this.scrollToPreviewWithTimeout('mempoolError', 'center');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user