commit 32075fd1a6c41ba9d69495f6baeeda23cf1e0992
parent 16866808331dc7eeba16e79a0fbbc35fa82220b0
Author: Marc Stibane <marc@taler.net>
Date: Mon, 31 Aug 2026 11:25:51 +0200
legacy (w.i.p.)
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Views/Settings/Exchange/ExchangeSectionView.swift b/TalerWallet1/Views/Settings/Exchange/ExchangeSectionView.swift
@@ -33,12 +33,14 @@ struct ExchangeSectionView: View {
@State private var disabled: Bool = false
@State private var showAlert: Bool = false
@State private var global: Bool = false
+ @State private var legacy: Bool = false
@MainActor
private func viewDidLoad() async {
if let exc = try? await model.listExchanges(scope: balance.scopeInfo) {
if let exchange = exc.first {
global = exchange.scopeInfo.type == .global
+ legacy = exchange.scopeInfo.type == .exchangeLegacyKeys
}
withAnimation { exchanges = exc }
}