commit 79a29ac688cbc4578fed336693e4e26c6ab418ed
parent 6eae305dfda4b2d16e97d1ae0c6b7a32154266d1
Author: Marc Stibane <marc@taler.net>
Date: Wed, 24 Jun 2026 10:43:42 +0200
Passes & Discounts (w.i.p., Taler Nightly only)
Diffstat:
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/TalerWallet1/Views/Balances/BalancesListView.swift b/TalerWallet1/Views/Balances/BalancesListView.swift
@@ -56,7 +56,7 @@ struct BalancesListView: View {
historyTapped: $historyTapped,
reloadTransactions: $reloadTransactions)
}
-#if DEBUG
+#if DEBUG || TALER_NIGHTLY
if count > 1 { // otherwise it comes before recentTransactions
DiscountPassesSection(stack: stack.push())
}
diff --git a/TalerWallet1/Views/Balances/BalancesSectionView.swift b/TalerWallet1/Views/Balances/BalancesSectionView.swift
@@ -155,7 +155,7 @@ extension BalancesSectionView: View {
await loadScanned(stack.push(".task - load scanned"))
}
if sectionCount == 1 {
-#if DEBUG
+#if DEBUG || TALER_NIGHTLY
// show Discounts & Passes before recents
DiscountPassesSection(stack: stack.push())
#endif
diff --git a/TalerWallet1/Views/Balances/DiscountPasses.swift b/TalerWallet1/Views/Balances/DiscountPasses.swift
@@ -199,6 +199,7 @@ struct DiscountsPassesList: View {
}
}
}
+// MARK: -
struct DiscountPassesSection: View {
let stack: CallStack
@EnvironmentObject private var controller: Controller