parent
098c4254d4
commit
7b218bfd75
|
@ -143,15 +143,17 @@ struct ReportView: View {
|
|||
.appGroupedListRowBackground()
|
||||
|
||||
Button(action: self.sendReport) {
|
||||
if isReporting {
|
||||
Text("Sending Report")
|
||||
let label = Text(isReporting ? "Sending Report" : "Send Report")
|
||||
HStack {
|
||||
label
|
||||
Spacer()
|
||||
if isReporting {
|
||||
ProgressView()
|
||||
.progressViewStyle(.circular)
|
||||
} else {
|
||||
Text("Send Report")
|
||||
}
|
||||
}
|
||||
.accessibilityLabel(label)
|
||||
}
|
||||
.disabled(isReporting)
|
||||
.appGroupedListRowBackground()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue