taler-ios

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

commit 0812c33177f3433f1e12d4f85db77917c2118201
parent c5b6f18b0ad545c6ef43372b0fe9024695e48ddc
Author: Marc Stibane <marc@taler.net>
Date:   Thu,  4 Apr 2024 21:14:56 +0200

terms-exchange prep

Diffstat:
MTalerWallet1/Controllers/Controller.swift | 3+++
MTalerWallet1/Views/Sheets/URLSheet.swift | 2++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/TalerWallet1/Controllers/Controller.swift b/TalerWallet1/Controllers/Controller.swift @@ -21,6 +21,7 @@ enum UrlCommand { case unknown case withdraw case withdrawExchange + case termsExchange case pay case payPull case payPush @@ -202,6 +203,8 @@ extension Controller { return .withdraw case "withdraw-exchange": return .withdrawExchange + case "terms-exchange": + return .termsExchange case "pay": return .pay case "pay-pull": diff --git a/TalerWallet1/Views/Sheets/URLSheet.swift b/TalerWallet1/Views/Sheets/URLSheet.swift @@ -28,6 +28,8 @@ struct URLSheet: View { WithdrawURIView(stack: stack.push(), url: urlToOpen) case .withdrawExchange: WithdrawExchangeV(stack: stack.push(), url: urlToOpen) + case .termsExchange: + WithdrawExchangeV(stack: stack.push(), url: urlToOpen) // TODO: just check the ToS case .pay: PaymentView(stack: stack.push(), url: urlToOpen, template: false, amountToTransfer: $amountToTransfer, summary: $summary)