Merge pull request #4969 from mempool/nymkappa/missing-accelerate-button-mobile
[accelerator] re-add missing accelerator button on mobile, set locati…
This commit is contained in:
		
						commit
						83cea33727
					
				| @ -540,8 +540,8 @@ | ||||
|           } @else { | ||||
|             <span class="eta justify-content-end" [class]="(acceleratorAvailable && accelerateCtaType === 'button') ? 'd-flex align-items-center' : ''"> | ||||
|               <app-time kind="until" *ngIf="(da$ | async) as da;" [time]="da.adjustedTimeAvg * (this.mempoolPosition.block + 1) + now + da.timeOffset" [fastRender]="false" [fixedRender]="true"></app-time> | ||||
|               @if (!isMobile && !tx.acceleration && acceleratorAvailable && accelerateCtaType === 'button' && !tx?.acceleration) { | ||||
|                 <a [href]="'/services/accelerator/accelerate?txid=' + tx.txid" class="btn btn-sm accelerate btn-small-height" i18n="transaction.accelerate|Accelerate button label" (click)="onAccelerateClicked()">Accelerate</a> | ||||
|               @if (!tx?.acceleration && acceleratorAvailable && accelerateCtaType === 'button') { | ||||
|                 <a class="btn btn-sm accelerate btn-small-height" i18n="transaction.accelerate|Accelerate button label" (click)="onAccelerateClicked()">Accelerate</a> | ||||
|               } | ||||
|             </span> | ||||
|           } | ||||
|  | ||||
| @ -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; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user