add detailed error info

pull/874/head
Ryan Zhao 2 years ago
parent cd0e699bde
commit 114868ef16

@ -209,7 +209,12 @@ struct MessageInfoView: View {
} }
if isMessageFailed { if isMessageFailed {
let failureText: String = messageViewModel.mostRecentFailureText ?? "Message failed to send"
InfoBlock(title: "Error:") {
Text(failureText)
.font(.system(size: 16))
.foregroundColor(.red)
}
} }
InfoBlock(title: "From:") { InfoBlock(title: "From:") {
@ -267,20 +272,22 @@ struct MessageInfoView: View {
) )
// Actions // Actions
// ZStack { if !actions.isEmpty {
// RoundedRectangle(cornerRadius: 8) ZStack {
// VStack { RoundedRectangle(cornerRadius: 8)
// ForEach( VStack {
// 0...(actions.count - 1), ForEach(
// id: \.self 0...(actions.count - 1),
// ) { index in id: \.self
// HStack { ) { index in
// Image(uiImage: actions[index].icon!) HStack {
// Text(actions[index].title) Image(uiImage: actions[index].icon!)
// } Text(actions[index].title)
// } }
// } }
// } }
}
}
} }
} }
} }

Loading…
Cancel
Save