commit 4e38cf9cf4875247e6a3ff5ca3b883684da3bf41
parent e1d95f754404192ae906595ccf77e0e2e7d01a34
Author: Marc Stibane <marc@taler.net>
Date: Mon, 25 Nov 2024 21:02:50 +0100
badge + a11y
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/TalerWallet1/Views/Transactions/TransactionRowView.swift b/TalerWallet1/Views/Transactions/TransactionRowView.swift
@@ -73,7 +73,8 @@ struct TransactionRowView: View {
let iconBadge = TransactionIconBadge(type: common.type, foreColor: foreColor,
done: done, incoming: incoming,
- shouldConfirm: shouldConfirm, needsKYC: needsKYC)
+ shouldConfirm: shouldConfirm && pending,
+ needsKYC: needsKYC && pending)
let amountV = AmountV(scope, amount(), isNegative: isZero ? nil : !incoming,
strikethrough: !doneOrPending)
.foregroundColor(foreColor)
@@ -189,8 +190,10 @@ struct TransactionRowView: View {
} else { layout4 } // view for iOS 15
}
.accessibilityElement(children: .combine)
- .accessibilityValue(needsKYC ? String(localized: ". Needs K Y C") :
- shouldConfirm ? String(localized: ". Needs bank authorization") : EMPTYSTRING)
+ .accessibilityValue(!doneOrPending ? EMPTYSTRING
+ : needsKYC ? String(localized: ". Needs K Y C")
+ : shouldConfirm ? String(localized: ". Needs bank authorization")
+ : EMPTYSTRING)
.accessibilityHint(String(localized: "Will go to detail view."))
}
}