mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:12:05 +00:00
BugReportView: show progress in the button, not as a dialog.
This commit is contained in:
committed by
Benoit Marty
parent
ffccbb5d90
commit
7bb5f3b056
+2
@@ -142,6 +142,7 @@ fun BugReportView(
|
|||||||
text = stringResource(id = CommonStrings.action_send),
|
text = stringResource(id = CommonStrings.action_send),
|
||||||
onClick = { eventSink(BugReportEvents.SendBugReport) },
|
onClick = { eventSink(BugReportEvents.SendBugReport) },
|
||||||
enabled = state.submitEnabled,
|
enabled = state.submitEnabled,
|
||||||
|
showProgress = state.sending.isLoading(),
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(top = 24.dp, bottom = 16.dp)
|
.padding(top = 24.dp, bottom = 16.dp)
|
||||||
@@ -151,6 +152,7 @@ fun BugReportView(
|
|||||||
|
|
||||||
AsyncView(
|
AsyncView(
|
||||||
async = state.sending,
|
async = state.sending,
|
||||||
|
showProgressDialog = false,
|
||||||
onSuccess = {
|
onSuccess = {
|
||||||
eventSink(BugReportEvents.ResetAll)
|
eventSink(BugReportEvents.ResetAll)
|
||||||
onDone()
|
onDone()
|
||||||
|
|||||||
Reference in New Issue
Block a user