Merge pull request #5310 from mempool/mononaut/acc-goal
accelerator goals
This commit is contained in:
		
						commit
						e55e4e378a
					
				| @ -8,6 +8,7 @@ import { ETA, EtaService } from '../../services/eta.service'; | |||||||
| import { Transaction } from '../../interfaces/electrs.interface'; | import { Transaction } from '../../interfaces/electrs.interface'; | ||||||
| import { MiningStats } from '../../services/mining.service'; | import { MiningStats } from '../../services/mining.service'; | ||||||
| import { IAuth, AuthServiceMempool } from '../../services/auth.service'; | import { IAuth, AuthServiceMempool } from '../../services/auth.service'; | ||||||
|  | import { EnterpriseService } from 'src/app/services/enterprise.service'; | ||||||
| 
 | 
 | ||||||
| export type PaymentMethod = 'balance' | 'bitcoin' | 'cashapp'; | export type PaymentMethod = 'balance' | 'bitcoin' | 'cashapp'; | ||||||
| 
 | 
 | ||||||
| @ -126,7 +127,8 @@ export class AccelerateCheckout implements OnInit, OnDestroy { | |||||||
|     private etaService: EtaService, |     private etaService: EtaService, | ||||||
|     private audioService: AudioService, |     private audioService: AudioService, | ||||||
|     private cd: ChangeDetectorRef, |     private cd: ChangeDetectorRef, | ||||||
|     private authService: AuthServiceMempool |     private authService: AuthServiceMempool, | ||||||
|  |     private enterpriseService: EnterpriseService, | ||||||
|   ) { |   ) { | ||||||
|     this.accelerationUUID = window.crypto.randomUUID(); |     this.accelerationUUID = window.crypto.randomUUID(); | ||||||
|   } |   } | ||||||
| @ -198,6 +200,9 @@ export class AccelerateCheckout implements OnInit, OnDestroy { | |||||||
|     if (!this.estimate && ['quote', 'summary', 'checkout'].includes(this.step)) { |     if (!this.estimate && ['quote', 'summary', 'checkout'].includes(this.step)) { | ||||||
|       this.fetchEstimate(); |       this.fetchEstimate(); | ||||||
|     } |     } | ||||||
|  |     if (this._step === 'checkout') { | ||||||
|  |       this.enterpriseService.goal(8); | ||||||
|  |     } | ||||||
|     if (this._step === 'checkout' && this.canPayWithBitcoin) { |     if (this._step === 'checkout' && this.canPayWithBitcoin) { | ||||||
|       this.btcpayInvoiceFailed = false; |       this.btcpayInvoiceFailed = false; | ||||||
|       this.loadingBtcpayInvoice = true; |       this.loadingBtcpayInvoice = true; | ||||||
|  | |||||||
| @ -75,9 +75,6 @@ | |||||||
|                   } @else { |                   } @else { | ||||||
|                     <app-time kind="until" [time]="eta.time" [fastRender]="false" [fixedRender]="true"></app-time> |                     <app-time kind="until" [time]="eta.time" [fastRender]="false" [fixedRender]="true"></app-time> | ||||||
|                   } |                   } | ||||||
|                   <!-- @if (!showAccelerationSummary && isMobile && !tx.acceleration && acceleratorAvailable && accelerateCtaType === 'button' && !tx?.acceleration) { |  | ||||||
|                     <a class="btn btn-sm accelerate btn-small-height" i18n="transaction.accelerate|Accelerate button label" (click)="onAccelerateClicked()">Accelerate</a> |  | ||||||
|                   } --> |  | ||||||
|                 </span> |                 </span> | ||||||
|               </ng-container> |               </ng-container> | ||||||
|               <ng-template #etaSkeleton> |               <ng-template #etaSkeleton> | ||||||
|  | |||||||
| @ -728,7 +728,6 @@ export class TrackerComponent implements OnInit, OnDestroy { | |||||||
|     if (!this.txId) { |     if (!this.txId) { | ||||||
|       return; |       return; | ||||||
|     } |     } | ||||||
|     this.enterpriseService.goal(8); |  | ||||||
|     this.accelerationFlowCompleted = false; |     this.accelerationFlowCompleted = false; | ||||||
|     if (this.showAccelerationSummary) { |     if (this.showAccelerationSummary) { | ||||||
|       this.scrollIntoAccelPreview = true; |       this.scrollIntoAccelPreview = true; | ||||||
|  | |||||||
| @ -725,7 +725,6 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     document.location.hash = '#accelerate'; |     document.location.hash = '#accelerate'; | ||||||
|     this.enterpriseService.goal(8); |  | ||||||
|     this.openAccelerator(); |     this.openAccelerator(); | ||||||
|     this.scrollIntoAccelPreview = true; |     this.scrollIntoAccelPreview = true; | ||||||
|     return false; |     return false; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user