gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 07/16: Error, Status


From: gnunet
Subject: [taler-taler-ios] 07/16: Error, Status
Date: Thu, 29 Feb 2024 17:19:14 +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 7927b348fd7abd2a5f6b610978a627792a3e5ce1
Author: Marc Stibane <marc@taler.net>
AuthorDate: Mon Feb 26 23:05:56 2024 +0100

    Error, Status
---
 TalerWallet1/Backend/WalletBackendError.swift             |  9 ++++++++-
 TalerWallet1/Views/Transactions/TransactionSummaryV.swift | 14 +++++++-------
 2 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/TalerWallet1/Backend/WalletBackendError.swift 
b/TalerWallet1/Backend/WalletBackendError.swift
index 802d027..9b4cea4 100644
--- a/TalerWallet1/Backend/WalletBackendError.swift
+++ b/TalerWallet1/Backend/WalletBackendError.swift
@@ -1,7 +1,10 @@
 /*
- * This file is part of GNU Taler, ©2022-23 Taler Systems S.A.
+ * This file is part of GNU Taler, ©2022-24 Taler Systems S.A.
  * See LICENSE.md
  */
+/**
+ * @author Marc Stibane
+ */
 import Foundation
 
 /// Errors for `WalletBackend`.
@@ -40,4 +43,8 @@ extension WalletCore {
     static func parseFailureError() -> WalletBackendResponseError {
         return WalletBackendResponseError(talerErrorCode: -3, talerErrorHint: 
"Could not parse error detail.", message: "")
     }
+
+    static func walletError() -> WalletBackendResponseError {
+        return WalletBackendResponseError(talerErrorCode: -4, talerErrorHint: 
"Error detail.", message: "")
+    }
 }
diff --git a/TalerWallet1/Views/Transactions/TransactionSummaryV.swift 
b/TalerWallet1/Views/Transactions/TransactionSummaryV.swift
index 050bf40..ccfb638 100644
--- a/TalerWallet1/Views/Transactions/TransactionSummaryV.swift
+++ b/TalerWallet1/Views/Transactions/TransactionSummaryV.swift
@@ -1,7 +1,10 @@
 /*
- * This file is part of GNU Taler, ©2022-23 Taler Systems S.A.
+ * This file is part of GNU Taler, ©2022-24 Taler Systems S.A.
  * See LICENSE.md
  */
+/**
+ * @author Marc Stibane
+ */
 import SwiftUI
 import taler_swift
 import SymLog
@@ -121,13 +124,10 @@ struct TransactionSummaryV: View {
                     .listRowSeparator(.hidden)
                 VStack(alignment: .trailing) {
                     let majorState = common.txState.major.localizedState
-#if DEBUG
                     let minorState = common.txState.minor?.localizedState ?? 
nil
-                    let state = transaction.isPending ? minorState ?? 
majorState
-                                                      : majorState
-#else
-                    let state = majorState
-#endif
+                    let state = developerMode ? transaction.isPending ? 
minorState ?? majorState
+                                                                      : 
majorState
+                                              : majorState
                     HStack {
                         Text(verbatim: "|")   // only reason for this 
leading-aligned text is to get a nice full length listRowSeparator
                             .accessibilityHidden(true)

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