commit 2af86d843dc0924bf26f2d7fb93afd4a59a89093
parent f33cb02637f69161a40ccb24abd2ef648f6b574f
Author: Marc Stibane <marc@taler.net>
Date: Wed, 4 Nov 2026 11:02:18 +0100
UI for KYC
Diffstat:
1 file changed, 24 insertions(+), 23 deletions(-)
diff --git a/TalerWallet1/Views/Transactions/TransactionSummaryList.swift b/TalerWallet1/Views/Transactions/TransactionSummaryList.swift
@@ -490,30 +490,31 @@ struct TransactionSummaryList: View {
} else {
Text("Legitimization procedure required", comment: "KYC")
}
- }
- let withdrawalDetails = details.withdrawalDetails
- switch withdrawalDetails.type {
- case .manual: // "Make a wire transfer of \(amount) to"
- ManualDetailsV(stack: stack.push(), common: common, details: withdrawalDetails)
+ } else {
+ let withdrawalDetails = details.withdrawalDetails
+ switch withdrawalDetails.type {
+ case .manual: // "Make a wire transfer of \(amount) to"
+ ManualDetailsV(stack: stack.push(), common: common, details: withdrawalDetails)
- case .bankIntegrated: // "Authorize now" (with bank)
- if !transaction.isPendingKYC { // cannot authorize if KYC is needed first
- let confirmed = withdrawalDetails.confirmed ?? false
- if !confirmed {
- if let confirmationUrl = withdrawalDetails.bankConfirmationUrl {
- if let destination = URL(string: confirmationUrl) {
- LinkButton(destination: destination,
- hintTitle: String(localized: "The bank is waiting for your authorization."),
- buttonTitle: String(localized: "Authorize now"),
- a11yHint: String(localized: "Will go to bank website to authorize this withdrawal.", comment: "a11y"),
- badge: CONFIRM_BANK)
- } } } }
- @unknown default:
- ErrorView(stack.push(),
- title: "Unknown withdrawal type", // should not happen, so no L10N
- message: withdrawalDetails.toJSON(),
- copyable: true)
- } // switch
+ case .bankIntegrated: // "Authorize now" (with bank)
+ if !transaction.isPendingKYC { // cannot authorize if KYC is needed first
+ let confirmed = withdrawalDetails.confirmed ?? false
+ if !confirmed {
+ if let confirmationUrl = withdrawalDetails.bankConfirmationUrl {
+ if let destination = URL(string: confirmationUrl) {
+ LinkButton(destination: destination,
+ hintTitle: String(localized: "The bank is waiting for your authorization."),
+ buttonTitle: String(localized: "Authorize now"),
+ a11yHint: String(localized: "Will go to bank website to authorize this withdrawal.", comment: "a11y"),
+ badge: CONFIRM_BANK)
+ } } } }
+ @unknown default:
+ ErrorView(stack.push(),
+ title: "Unknown withdrawal type", // should not happen, so no L10N
+ message: withdrawalDetails.toJSON(),
+ copyable: true)
+ } // switch
+ }
}
}
// MARK: -