taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit c13e651a79d7f1715ab1dd9532546bc247cc2245
parent b194292fcfa4a83cf47549b1d416da707f462964
Author: Marc Stibane <marc@taler.net>
Date:   Sun, 23 Aug 2026 19:30:02 +0200

navTitle for merchant-accept-insufficient

Diffstat:
MTalerWallet1/Views/Transactions/TransactionSummaryList.swift | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/TalerWallet1/Views/Transactions/TransactionSummaryList.swift b/TalerWallet1/Views/Transactions/TransactionSummaryList.swift @@ -253,6 +253,14 @@ struct TransactionSummaryList: View { } // Delete button } + var navTitleStr: String { + let isPaying = talerTX.isPayment && talerTX.isDialog + 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")) + : talerTX.localizedType + } + var body: some View { #if PRINT_CHANGES let _ = Self._printChanges() @@ -262,9 +270,6 @@ struct TransactionSummaryList: View { // let scope = common.scopes.first // might be nil if scopes == [] let locale = TalerDater.shared.locale let isPaying = talerTX.isPayment && talerTX.isDialog - let navTitle2 = talerTX.isDone ? talerTX.localizedTypePast - : isPaying ? String(localized: "Confirm Payment", comment:"pay merchant navTitle") - : talerTX.localizedType Group { if common.type != .dummy && transactionId == common.transactionId { let list = List { @@ -324,6 +329,7 @@ struct TransactionSummaryList: View { .padding(.horizontal) } } + .navigationTitle(navTitle ?? navTitleStr) .onChange(of: payNow) { payNow2 in if payNow2 { Task { @@ -352,7 +358,6 @@ struct TransactionSummaryList: View { checkReload(stack.push("TransactionStateTransition"), notification, "some transition ==> reload") } } - .navigationTitle(navTitle ?? navTitle2) if #available(iOS 17.0, *) { list