[accelerator] streamline flow

This commit is contained in:
Mononaut
2024-06-30 05:37:51 +00:00
parent 110b7a934c
commit cfe5da2276
4 changed files with 45 additions and 21 deletions

View File

@@ -56,7 +56,9 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
@Input() cashappEnabled: boolean = true;
@Input() advancedEnabled: boolean = false;
@Input() forceMobile: boolean = false;
@Input() showDetails: boolean = false;
@Input() noCTA: boolean = false;
@Output() hasDetails = new EventEmitter<boolean>();
@Output() changeMode = new EventEmitter<boolean>();
calculating = true;
@@ -67,7 +69,6 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
private _step: CheckoutStep = 'summary';
simpleMode: boolean = true;
showDetails: boolean = false;
paymentMethod: 'cashapp' | 'btcpay';
user: any = undefined;
@@ -159,6 +160,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
this.insertSquare();
this.setupSquare();
}
this.hasDetails.emit(this._step === 'quote');
}
/**