commit fcaaf7ebec96e1c67f66f7a80b44cfdfd16657b6
parent 0da9fc43055b9d8a48ef21382f01ff2049f0d349
Author: Marc Stibane <marc@taler.net>
Date: Mon, 11 Nov 2024 16:17:11 +0100
Remove "Amount too small"
Diffstat:
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/TalerWallet1/Views/Actions/Banking/QuiteSomeCoins.swift b/TalerWallet1/Views/Actions/Banking/QuiteSomeCoins.swift
@@ -80,12 +80,10 @@ struct QuiteSomeCoins: View {
}
}
if isError || coinData.quiteSome || coinData.manyCoins {
- Text(coinData.invalid ? "Amount too small"
- : coinData.tooMany ? "Amount too big for a single withdrawal!"
+ Text(coinData.tooMany ? "Amount too big for a single withdrawal!"
: coinData.quiteSome ? "Note: It will take quite some time to prepare this amount! Be more patient..."
: "Note: It will take some time to prepare this amount. Be patient...")
- .foregroundColor(coinData.invalid ? .secondary :
- isError || coinData.quiteSome ? .red : .primary)
+ .foregroundColor(isError || coinData.quiteSome ? .red : .primary)
.talerFont(.body)
.multilineTextAlignment(.leading)
.padding(.vertical, 6)
diff --git a/TalerWallet1/Views/HelperViews/AmountInputV.swift b/TalerWallet1/Views/HelperViews/AmountInputV.swift
@@ -101,7 +101,7 @@ struct AmountInputV: View {
shouldShowFee: true, // TODO: set to false if we never charge withdrawal fees
feeIsNegative: feeIsNegative)
let flags = checkAvailable(coinData)
- Button(coinData.invalid ? "Amount too small" : "Next") { buttonAction() }
+ Button("Next") { buttonAction() }
.buttonStyle(TalerButtonStyle(type: .prominent, disabled: flags.disabled))
.disabled(flags.disabled)
}.padding(.horizontal)