commit 6e59e88891f72d377ba19ac7b48a56efb637b855
parent 84bd2b8a419db56c09281227c6974f09e375bbfb
Author: Marc Stibane <marc@taler.net>
Date: Wed, 12 Aug 2026 05:05:26 +0200
show more hints, Copy Details
Diffstat:
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/TalerWallet1/Views/HelperViews/LoadingView.swift b/TalerWallet1/Views/HelperViews/LoadingView.swift
@@ -97,13 +97,13 @@ struct LoadingView: View {
Text("Couldn't establish a connection")
.talerFont(.title2)
.padding(.vertical)
- Text(lastError?.error.hint ?? fallback)
+ let hint = lastError?.error.hint
+ ?? lastError?.error.errorResponse?.hint
+ Text(hint ?? fallback)
.talerFont(.body)
- if developerMode {
- if let jsonString = toJSON(lastError) {
- CopyButton(jsonString, title: "Copy JSON")
- .padding(.vertical)
- }
+ if let jsonString = toJSON(lastError) {
+ CopyButton(jsonString, title: "Copy Details")
+ .padding(.vertical)
}
Spacer()
if let lastPhase = controller.lastProgressPhase {
@@ -152,6 +152,7 @@ struct LoadingView: View {
dismissButton
}
.frame(maxWidth: .infinity)
+ .padding()
.talerFont(.title)
.navigationTitle(navTitle)
.background(FullBackground())