gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 167/204: badge + a11y


From: gnunet
Subject: [taler-taler-ios] 167/204: badge + a11y
Date: Thu, 05 Dec 2024 23:52:15 +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 4e38cf9cf4875247e6a3ff5ca3b883684da3bf41
Author: Marc Stibane <marc@taler.net>
AuthorDate: Mon Nov 25 21:02:50 2024 +0100

    badge + a11y
---
 TalerWallet1/Views/Transactions/TransactionRowView.swift | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/TalerWallet1/Views/Transactions/TransactionRowView.swift 
b/TalerWallet1/Views/Transactions/TransactionRowView.swift
index 16273a5..1d165b6 100644
--- 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."))
     }
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]