commit 7927b348fd7abd2a5f6b610978a627792a3e5ce1
parent dbb3a3ea02e285f54053af8e800b4b89947d5c46
Author: Marc Stibane <marc@taler.net>
Date: Mon, 26 Feb 2024 23:05:56 +0100
Error, Status
Diffstat:
2 files changed, 15 insertions(+), 8 deletions(-)
diff --git 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
@@ -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)