[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 139/204: cleanup
From: |
gnunet |
Subject: |
[taler-taler-ios] 139/204: cleanup |
Date: |
Thu, 05 Dec 2024 23:51:47 +0100 |
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 0353f771da46a30d2c448603066c64e3a0bc915e
Author: Marc Stibane <marc@taler.net>
AuthorDate: Mon Nov 18 16:30:38 2024 +0100
cleanup
---
.../Views/Actions/Banking/ManualWithdraw.swift | 2 +-
.../Views/Actions/Banking/QuiteSomeCoins.swift | 12 ++++----
TalerWallet1/Views/Balances/PendingRowView.swift | 6 ++--
.../Views/HelperViews/QRCodeDetailView.swift | 32 ++++++++++++----------
4 files changed, 29 insertions(+), 23 deletions(-)
diff --git a/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift
b/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift
index dd15046..47a5642 100644
--- a/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift
+++ b/TalerWallet1/Views/Actions/Banking/ManualWithdraw.swift
@@ -202,7 +202,7 @@ struct ManualWithdrawContent: View {
// let _ = print(selectedAge, restrictAge)
let destination = ManualWithdrawDone(stack: stack.push(),
scope:
detailsForAmount.scopeInfo,
- baseURL:
detailsForAmount.exchangeBaseUrl,
+ baseURL: baseURL,
amountToTransfer: amountToTransfer)
// restrictAge: restrictAge)
let disabled = amountToTransfer.isZero || coinData.invalid ||
coinData.tooMany
diff --git a/TalerWallet1/Views/Actions/Banking/QuiteSomeCoins.swift
b/TalerWallet1/Views/Actions/Banking/QuiteSomeCoins.swift
index 5f60c1b..c0bd243 100644
--- a/TalerWallet1/Views/Actions/Banking/QuiteSomeCoins.swift
+++ b/TalerWallet1/Views/Actions/Banking/QuiteSomeCoins.swift
@@ -71,12 +71,14 @@ struct QuiteSomeCoins: View {
var body: some View {
let isError = coinData.tooMany // || coinData.invalid
let showFee = shouldShowFee && !isError
- if showFee {
+ if showFee { // TODO: does exchange never have fee?
if let fee = coinData.fee {
- Text(coinData.feeLabel(scope, feeZero: String(localized: "No
withdrawal fee"),
- isNegative: feeIsNegative))
- .foregroundColor(.primary)
- .talerFont(.body)
+ let feeLabel = coinData.feeLabel(scope,
+ feeZero: String(localized: "No fee"),
+ isNegative: feeIsNegative)
+ Text(feeLabel)
+ .foregroundColor(.primary)
+ .talerFont(.body)
}
}
if isError || coinData.quiteSome || coinData.manyCoins {
diff --git a/TalerWallet1/Views/Balances/PendingRowView.swift
b/TalerWallet1/Views/Balances/PendingRowView.swift
index afa2240..79eef91 100644
--- a/TalerWallet1/Views/Balances/PendingRowView.swift
+++ b/TalerWallet1/Views/Balances/PendingRowView.swift
@@ -41,7 +41,7 @@ struct PendingRowView: View {
.foregroundColor(pendingColor)
// this is the default view for iOS 15
- let vStack = VStack {
+ let vLayout = VStack {
Text(pendingTitle.tabbed(oneLine: true))
HStack {
iconBadge
@@ -56,7 +56,7 @@ struct PendingRowView: View {
Text(pendingTitle.tabbed(oneLine: false))
amountText.frame(maxWidth: .infinity, alignment: .trailing)
}
- vStack
+ vLayout
VStack {
Text(pendingTitle.tabbed(oneLine: true))
iconBadge
@@ -64,7 +64,7 @@ struct PendingRowView: View {
}
}
} else {
- vStack
+ vLayout
}
}
}
diff --git a/TalerWallet1/Views/HelperViews/QRCodeDetailView.swift
b/TalerWallet1/Views/HelperViews/QRCodeDetailView.swift
index 53123b1..0135c5b 100644
--- a/TalerWallet1/Views/HelperViews/QRCodeDetailView.swift
+++ b/TalerWallet1/Views/HelperViews/QRCodeDetailView.swift
@@ -55,20 +55,24 @@ struct QRCodeDetailView: View {
}
.accessibilityLabel("QR Code")
.listRowSeparator(.hidden)
- if !minimalistic {
- let amountStr = amountStr(currencyInfo)
- let scanLong = incoming ? String(localized: "(payer) 1",
- defaultValue: "Let the payer
scan this QR code to pay \(amountStr).",
- comment: "e.g. '5,3 €'")
- : String(localized: "(payee) 1",
- defaultValue: "Let the payee
scan this QR code to receive \(amountStr).",
- comment: "e.g. '$
7.41'")
- Text(scanLong)
- .multilineTextAlignment(.leading)
- .talerFont(.title3)
- .listRowSeparator(.hidden)
- .task(id: controller.currencyTicker) { await
currencyTickerChanged() }
- }
+ let amountStr = amountStr(currencyInfo)
+ let scanLong = incoming ? (minimalistic ? String(localized:
"(payer) 1 mini",
+ defaultValue:
"Requesting \(amountStr)",
+ comment:
"e.g. '5,3 €'")
+ : String(localized:
"(payer) 1",
+ defaultValue:
"Let the payer scan this QR code to pay \(amountStr).",
+ comment:
"e.g. '5,3 €'"))
+ : (minimalistic ? String(localized:
"(payee) 1 mini",
+ defaultValue:
"Sending \(amountStr)",
+ comment:
"e.g. '$ 7.41'")
+ : String(localized:
"(payee) 1",
+ defaultValue:
"Let the payee scan this QR code to receive \(amountStr).",
+ comment:
"e.g. '$ 7.41'"))
+ Text(scanLong)
+ .multilineTextAlignment(.leading)
+ .talerFont(.title3)
+ .listRowSeparator(.hidden)
+ .task(id: controller.currencyTicker) { await
currencyTickerChanged() }
CopyShare(textToCopy: talerCopyShare)
.disabled(false)
// .padding(.bottom)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 151/204: cleanup, (continued)
- [taler-taler-ios] 151/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 158/204: Logging, gnunet, 2024/12/05
- [taler-taler-ios] 140/204: wording, gnunet, 2024/12/05
- [taler-taler-ios] 154/204: show product images, gnunet, 2024/12/05
- [taler-taler-ios] 160/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 163/204: fix deposit, gnunet, 2024/12/05
- [taler-taler-ios] 165/204: get rid of P2P, gnunet, 2024/12/05
- [taler-taler-ios] 144/204: scope from balance, gnunet, 2024/12/05
- [taler-taler-ios] 135/204: Colors, gnunet, 2024/12/05
- [taler-taler-ios] 137/204: restrictScope, gnunet, 2024/12/05
- [taler-taler-ios] 139/204: cleanup,
gnunet <=
- [taler-taler-ios] 143/204: prepare split, gnunet, 2024/12/05
- [taler-taler-ios] 141/204: cleanup, gnunet, 2024/12/05
- [taler-taler-ios] 149/204: summary for p2p, gnunet, 2024/12/05
- [taler-taler-ios] 147/204: layout improvement, gnunet, 2024/12/05
- [taler-taler-ios] 155/204: ensure to pay only ONCE, gnunet, 2024/12/05
- [taler-taler-ios] 162/204: KnownBankAccounts, gnunet, 2024/12/05
- [taler-taler-ios] 159/204: getTransactionById, gnunet, 2024/12/05
- [taler-taler-ios] 178/204: remove etag, gnunet, 2024/12/05
- [taler-taler-ios] 148/204: dismiss only if done, gnunet, 2024/12/05
- [taler-taler-ios] 146/204: smaller tx icon in lists, gnunet, 2024/12/05