gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 19/35: Move Status to top


From: gnunet
Subject: [taler-taler-ios] 19/35: Move Status to top
Date: Thu, 27 Jul 2023 09:09:52 +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 0ee1405c40134c124edda6d1f2e45a478b5fa21a
Author: Marc Stibane <marc@taler.net>
AuthorDate: Mon Jul 24 16:37:16 2023 +0200

    Move Status to top
---
 TalerWallet1/Views/Transactions/ThreeAmounts.swift       |  7 -------
 .../Views/Transactions/TransactionDetailView.swift       | 16 +++++++++++++---
 2 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/TalerWallet1/Views/Transactions/ThreeAmounts.swift 
b/TalerWallet1/Views/Transactions/ThreeAmounts.swift
index 85530cf..8f2287a 100644
--- a/TalerWallet1/Views/Transactions/ThreeAmounts.swift
+++ b/TalerWallet1/Views/Transactions/ThreeAmounts.swift
@@ -85,13 +85,6 @@ struct ThreeAmountsView: View {
                 .frame(maxWidth: .infinity, alignment: .leading)
                 .listRowSeparator(.hidden)
             }
-            if let status {
-                HStack {
-                    Spacer()
-                    Text("Status: \(status)")
-                        .font(.title2)
-                }.padding()
-            }
         }
     }
 }
diff --git a/TalerWallet1/Views/Transactions/TransactionDetailView.swift 
b/TalerWallet1/Views/Transactions/TransactionDetailView.swift
index 37db724..3308ed0 100644
--- a/TalerWallet1/Views/Transactions/TransactionDetailView.swift
+++ b/TalerWallet1/Views/Transactions/TransactionDetailView.swift
@@ -67,7 +67,16 @@ struct TransactionDetailView: View {
                 } // Suspend + Resume buttons
                 Text(dateString)
                     .font(.title2)
-//                .listRowSeparator(.hidden)
+                    .listRowSeparator(.hidden)
+                HStack {
+                    Text(verbatim: "|")   // only reason for this 
leading-aligned text is to get a nice full length listRowSeparator
+                        .font(.title2)
+                        .accessibilityHidden(true)
+                        .foregroundColor(Color.clear)
+                    Spacer()
+                    Text("Status: \(common.txState.major.localizedState)")
+                        .font(.title2)
+                }    .listRowSeparator(.automatic)
                 SwitchCase(transaction: $transaction)
 
                 if transaction.isAbortable { if let abortAction {
@@ -180,9 +189,10 @@ struct TransactionDetailView: View {
                                     if !confirmed {
                                         if let confirmationUrl = 
withdrawalDetails.bankConfirmationUrl {
                                             if let destination = URL(string: 
confirmationUrl) {
-                                                VStack {  // Show Hint that 
User should Confirm on bank website
+                                                VStack(alignment: .leading) {  
// Show Hint that User should Confirm on bank website
                                                     Text("Waiting for bank 
confirmation")
-                                                        
.multilineTextAlignment(.leading)
+                                                        .fixedSize(horizontal: 
false, vertical: true)       // wrap in scrollview
+                                                        
.multilineTextAlignment(.leading)                   // otherwise
                                                         
.listRowSeparator(.hidden)
                                                     Link("Confirm with bank", 
destination: destination)
                                                         
.buttonStyle(TalerButtonStyle(type: .prominent, narrow: false, aligned: 
.center))

-- 
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]