commit e5e51a4e29e565366df1176946b4be2649afe367
parent 2505968ba2b49179932553a6c0072215e7b52a87
Author: Marc Stibane <marc@taler.net>
Date: Wed, 9 Sep 2026 17:06:37 +0200
Already paid - repurchase navTitle
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Model/Transaction.swift b/TalerWallet1/Model/Transaction.swift
@@ -392,7 +392,7 @@ struct TransactionCommon: Decodable, Sendable {
var isAbSuspended : Bool { txState.major == .suspendedAborting }
var isFailed : Bool { txState.major == .failed }
var isExpired : Bool { txState.major == .expired }
-
+ var isRepurchase : Bool { txState.minor == .repurchase }
var isAbortable : Bool { txActions.contains(.abort) }
var isFailable : Bool { txActions.contains(.fail) }
var isDeleteable : Bool { txActions.contains(.delete) }
diff --git a/TalerWallet1/Views/Transactions/TransactionSummaryList.swift b/TalerWallet1/Views/Transactions/TransactionSummaryList.swift
@@ -259,9 +259,11 @@ struct TransactionSummaryList: View {
var navTitleStr: String {
let isPaying = talerTX.isPayment && talerTX.isDialog
+ let isRepurchase = talerTX.common.isRepurchase
return talerTX.isDone ? talerTX.localizedTypePast
: isPaying ? (effective != nil ? String(localized: "Confirm Payment", comment:"pay merchant navTitle")
: String(localized: "Payment not possible", comment:"pay merchant navTitle"))
+ : isRepurchase ? String(localized: "Already paid", comment:"repurchase merchant navTitle")
: talerTX.localizedType
}