[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 06/20: Add CURRENCY below Pay button
From: |
gnunet |
Subject: |
[taler-taler-ios] 06/20: Add CURRENCY below Pay button |
Date: |
Fri, 02 Aug 2024 18:04:00 +0200 |
This is an automated email from the git hooks/post-receive script.
marc-stibane pushed a commit to branch master
in repository taler-ios.
commit 9b397c7f71f5f593579637de6c3e430aa74bd33f
Author: Marc Stibane <marc@taler.net>
AuthorDate: Tue Jul 30 09:23:35 2024 +0200
Add CURRENCY below Pay button
---
TalerWallet1/Localizable.xcstrings | 6 ++++++
.../Views/Sheets/Payment/PaymentView.swift | 23 +++++++++++++---------
2 files changed, 20 insertions(+), 9 deletions(-)
diff --git a/TalerWallet1/Localizable.xcstrings
b/TalerWallet1/Localizable.xcstrings
index 83357ba..0e61c5e 100644
--- a/TalerWallet1/Localizable.xcstrings
+++ b/TalerWallet1/Localizable.xcstrings
@@ -3504,6 +3504,9 @@
}
}
}
+ },
+ "Pay %@ now" : {
+
},
"Pay P2P" : {
"comment" : "Nav Title",
@@ -3639,6 +3642,9 @@
}
}
}
+ },
+ "Payment is made in %@" : {
+
},
"Payment provider:" : {
"localizations" : {
diff --git a/TalerWallet1/Views/Sheets/Payment/PaymentView.swift
b/TalerWallet1/Views/Sheets/Payment/PaymentView.swift
index a2b598a..933d6e0 100644
--- a/TalerWallet1/Views/Sheets/Payment/PaymentView.swift
+++ b/TalerWallet1/Views/Sheets/Payment/PaymentView.swift
@@ -91,12 +91,12 @@ struct PaymentView: View {
var body: some View {
Group {
if let preparePayResult {
+ let raw = preparePayResult.amountRaw
let effective = preparePayResult.amountEffective
let terms = preparePayResult.contractTerms
List {
// TODO: show balanceDetails.balanceAvailable
let baseURL =
preparePayResult.contractTerms.exchanges.first?.url
- let raw = preparePayResult.amountRaw
let status = preparePayResult.status
let currency = raw.currencyStr
let topTitle = String(localized: "Amount to pay:")
@@ -151,15 +151,20 @@ struct PaymentView: View {
.listStyle(myListStyle.style).anyView
.safeAreaInset(edge: .bottom) {
if let effective {
- NavigationLink(destination: LazyView {
- PaymentDone(stack: stack.push(),
- currencyInfo: $currencyInfo,
- transactionId: preparePayResult.transactionId)
- }) {
- Text(navTitle) // Confirm Payment
+ VStack {
+ NavigationLink(destination: LazyView {
+ PaymentDone(stack: stack.push(),
+ currencyInfo: $currencyInfo,
+ transactionId: preparePayResult.transactionId)
+ }) {
+ let formatted = raw.formatted(currencyInfo,
isNegative: false)
+ Text("Pay \(formatted) now")
+ }
+ .buttonStyle(TalerButtonStyle(type: .prominent))
+ .padding(.horizontal)
+ Text("Payment is made in
\(currencyInfo.scope.currency)")
+ .talerFont(.callout)
}
- .buttonStyle(TalerButtonStyle(type: .prominent))
- .padding(.horizontal)
} else {
Button("Cancel", action: {
dismissTop(stack.push())
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] branch master updated (8804815 -> 022a1b3), gnunet, 2024/08/02
- [taler-taler-ios] 15/20: fix cancel, gnunet, 2024/08/02
- [taler-taler-ios] 18/20: Convenience, cleanup, gnunet, 2024/08/02
- [taler-taler-ios] 03/20: wording, gnunet, 2024/08/02
- [taler-taler-ios] 06/20: Add CURRENCY below Pay button,
gnunet <=
- [taler-taler-ios] 10/20: insufficient, disabled, gnunet, 2024/08/02
- [taler-taler-ios] 09/20: comments, cleanup, gnunet, 2024/08/02
- [taler-taler-ios] 13/20: CopyShare for QR, with separate content, gnunet, 2024/08/02
- [taler-taler-ios] 19/20: WithdrawalDetails, gnunet, 2024/08/02
- [taler-taler-ios] 11/20: Fee, gnunet, 2024/08/02
- [taler-taler-ios] 14/20: sign of fee amount, gnunet, 2024/08/02
- [taler-taler-ios] 01/20: Amounts can be with "-" or "+" sign, or without sign, gnunet, 2024/08/02
- [taler-taler-ios] 12/20: cancellationId, gnunet, 2024/08/02
- [taler-taler-ios] 08/20: cleanup, gnunet, 2024/08/02
- [taler-taler-ios] 02/20: Preview, gnunet, 2024/08/02