Merge pull request #5363 from mempool/nymkappa/apple-pay-hotfix
[accelerator] hide fiat payment method section if none available
This commit is contained in:
commit
2c5d7fbc9f
@ -395,16 +395,18 @@
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<div class="col-sm text-center d-flex flex-column justify-content-center align-items-center">
|
@if (canPayWithCashapp || canPayWithApplePay) {
|
||||||
<p><ng-container i18n="transaction.pay|Pay button label">Pay</ng-container> <app-fiat [value]="cost"></app-fiat> with</p>
|
<div class="col-sm text-center d-flex flex-column justify-content-center align-items-center">
|
||||||
@if (canPayWithCashapp) {
|
<p><ng-container i18n="transaction.pay|Pay button label">Pay</ng-container> <app-fiat [value]="cost"></app-fiat> with</p>
|
||||||
<img class="paymentMethod mx-2" style="width: 200px" src="/resources/cash-app.svg" height=55 (click)="moveToStep('cashapp')">
|
@if (canPayWithCashapp) {
|
||||||
}
|
<img class="paymentMethod mx-2" style="width: 200px" src="/resources/cash-app.svg" height=55 (click)="moveToStep('cashapp')">
|
||||||
@if (canPayWithApplePay) {
|
}
|
||||||
@if (canPayWithCashapp) { <hr class="w-25 mt-2 mb-2"> }
|
@if (canPayWithApplePay) {
|
||||||
<img style="cursor: pointer;" src="/resources/apple-pay.svg" height=55 (click)="moveToStep('applepay')">
|
@if (canPayWithCashapp) { <hr class="w-25 mt-2 mb-2"> }
|
||||||
}
|
<img style="cursor: pointer;" src="/resources/apple-pay.svg" height=55 (click)="moveToStep('applepay')">
|
||||||
</div>
|
}
|
||||||
|
</div>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user