gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 163/204: fix deposit


From: gnunet
Subject: [taler-taler-ios] 163/204: fix deposit
Date: Thu, 05 Dec 2024 23:52:11 +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 d76f313adb720e9d1c627f19b962ca707605d50f
Author: Marc Stibane <marc@taler.net>
AuthorDate: Mon Nov 25 20:50:08 2024 +0100

    fix deposit
---
 TalerWallet1/Views/Actions/Banking/DepositAmountView.swift | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Views/Actions/Banking/DepositAmountView.swift 
b/TalerWallet1/Views/Actions/Banking/DepositAmountView.swift
index 72ca548..0a21e46 100644
--- a/TalerWallet1/Views/Actions/Banking/DepositAmountView.swift
+++ b/TalerWallet1/Views/Actions/Banking/DepositAmountView.swift
@@ -97,8 +97,9 @@ struct DepositAmountView: View {
                 symLog.log("Deposit")
                 if let result = try? await model.createDepositGroup(paytoUri, 
amount: amountToTransfer) {
                     symLog.log(result.transactionId)
-                    ViewState2.shared.popToRootView(stack.push())
+//                    ViewState2.shared.popToRootView(stack.push())
                     NotificationCenter.default.post(name: .TransactionDone, 
object: nil, userInfo: nil)
+                    dismissTop(stack.push())
                 } else {
                     depositStarted = false
                 }
@@ -115,6 +116,11 @@ struct DepositAmountView: View {
             LoadingView(scopeInfo: nil, message: "Depositing...")
                 .navigationBarBackButtonHidden(true)
                 .interactiveDismissDisabled()           // can only use "Done" 
button to dismiss
+                .safeAreaInset(edge: .bottom) {
+                    Button("Abort") { dismissTop(stack.push()) }
+                        .buttonStyle(TalerButtonStyle(type: .prominent))
+                        .padding(.horizontal)
+                }
         } else { Group {
             if let balance {
                 let scopeInfo = balance.scopeInfo
@@ -148,6 +154,7 @@ struct DepositAmountView: View {
                     .padding(4)
                 Button(buttonTitle(amountToTransfer)) { startDeposit() }
                 .buttonStyle(TalerButtonStyle(type: .prominent, disabled: 
disabled || depositStarted))
+                .padding(.horizontal)
                 .disabled(disabled || depositStarted)
                 .accessibilityHint(disabled ? String(localized: "enabled when 
amount is non-zero, but not higher than your available amount") : EMPTYSTRING)
             } else {    // no balance - Yikes

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