gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 18/32: Dismiss P2P without showing details again


From: gnunet
Subject: [taler-taler-ios] 18/32: Dismiss P2P without showing details again
Date: Sat, 10 Feb 2024 15:04:44 +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 52ae044f96d6d0d005dc2a4e7a9064eadb7d4082
Author: Marc Stibane <marc@taler.net>
AuthorDate: Sun Feb 4 15:25:23 2024 +0100

    Dismiss P2P without showing details again
---
 .../Views/Sheets/P2P_Sheets/P2pAcceptDone.swift    | 24 +++-------------------
 1 file changed, 3 insertions(+), 21 deletions(-)

diff --git a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pAcceptDone.swift 
b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pAcceptDone.swift
index 0d45f8d..ede5272 100644
--- a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pAcceptDone.swift
+++ b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pAcceptDone.swift
@@ -17,15 +17,6 @@ struct P2pAcceptDone: View {
     @EnvironmentObject private var controller: Controller
     @EnvironmentObject private var model: WalletModel
 
-    @State private var finished: Bool = false
-
-    func reloadOneAction(_ transactionId: String) async throws -> Transaction {
-        return try await model.getTransactionByIdT(transactionId)
-    }
-    func dismissTopAnimated(_ stack: CallStack) {
-        dismissTop()
-    }
-    
     var body: some View {
 #if PRINT_CHANGES
         let _ = Self._printChanges()
@@ -33,18 +24,9 @@ struct P2pAcceptDone: View {
 #endif
         let navTitle = incoming ? String(localized: "Received P2P", comment: 
"Title, short")
                                 : String(localized: "Paid P2P", comment: 
"Title, short")
-        TransactionSummaryV(stack: stack.push(),
-                      transactionId: transactionId,
-                       reloadAction: reloadOneAction,
-                           navTitle: navTitle,
-                         doneAction: dismissTopAnimated,
-                        abortAction: nil,
-                       deleteAction: nil,
-                         failAction: nil,
-                      suspendAction: nil,
-                       resumeAction: nil)
+        LoadingView(url: nil, message: "Accepting...")
             .navigationBarBackButtonHidden(true)
-            .interactiveDismissDisabled()           // can only use "Done" 
button to dismiss
+//            .interactiveDismissDisabled()           // can only use "Done" 
button to dismiss
             .navigationTitle(navTitle)
             .onAppear() {
                 symLog.log("onAppear")
@@ -58,7 +40,7 @@ struct P2pAcceptDone: View {
                     } else {
                         _ = try await 
model.confirmPeerPullDebitM(transactionId)
                     }
-                    finished = true
+                    dismissTop()
                 } catch {    // TODO: error
                     symLog.log(error.localizedDescription)
                     controller.playSound(0)

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