mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Rename parameter
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ fun SecureBackupDisableView(
|
|||||||
|
|
||||||
AsyncActionView(
|
AsyncActionView(
|
||||||
async = state.disableAction,
|
async = state.disableAction,
|
||||||
confirmingDialog = {
|
confirmationDialog = {
|
||||||
SecureBackupDisableConfirmationDialog(
|
SecureBackupDisableConfirmationDialog(
|
||||||
onConfirm = { state.eventSink.invoke(SecureBackupDisableEvents.DisableBackup) },
|
onConfirm = { state.eventSink.invoke(SecureBackupDisableEvents.DisableBackup) },
|
||||||
onDismiss = { state.eventSink.invoke(SecureBackupDisableEvents.DismissDialogs) },
|
onDismiss = { state.eventSink.invoke(SecureBackupDisableEvents.DismissDialogs) },
|
||||||
|
|||||||
+3
-3
@@ -55,7 +55,7 @@ fun <T> AsyncActionView(
|
|||||||
async = async,
|
async = async,
|
||||||
onSuccess = onSuccess,
|
onSuccess = onSuccess,
|
||||||
onErrorDismiss = onErrorDismiss,
|
onErrorDismiss = onErrorDismiss,
|
||||||
confirmingDialog = {
|
confirmationDialog = {
|
||||||
if (showConfirmationDialog) {
|
if (showConfirmationDialog) {
|
||||||
AsyncActionViewDefaults.ConfirmationDialog(
|
AsyncActionViewDefaults.ConfirmationDialog(
|
||||||
confirmationText = confirmationText,
|
confirmationText = confirmationText,
|
||||||
@@ -80,7 +80,7 @@ fun <T> AsyncActionView(
|
|||||||
async: AsyncAction<T>,
|
async: AsyncAction<T>,
|
||||||
onSuccess: (T) -> Unit,
|
onSuccess: (T) -> Unit,
|
||||||
onErrorDismiss: () -> Unit,
|
onErrorDismiss: () -> Unit,
|
||||||
confirmingDialog: @Composable () -> Unit = { AsyncActionViewDefaults.ConfirmationDialog() },
|
confirmationDialog: @Composable () -> Unit = { AsyncActionViewDefaults.ConfirmationDialog() },
|
||||||
progressDialog: @Composable () -> Unit = { AsyncActionViewDefaults.ProgressDialog() },
|
progressDialog: @Composable () -> Unit = { AsyncActionViewDefaults.ProgressDialog() },
|
||||||
errorTitle: @Composable (Throwable) -> String = { ErrorDialogDefaults.title },
|
errorTitle: @Composable (Throwable) -> String = { ErrorDialogDefaults.title },
|
||||||
errorMessage: @Composable (Throwable) -> String = { it.message ?: it.toString() },
|
errorMessage: @Composable (Throwable) -> String = { it.message ?: it.toString() },
|
||||||
@@ -88,7 +88,7 @@ fun <T> AsyncActionView(
|
|||||||
) {
|
) {
|
||||||
when (async) {
|
when (async) {
|
||||||
AsyncAction.Uninitialized -> Unit
|
AsyncAction.Uninitialized -> Unit
|
||||||
AsyncAction.Confirming -> confirmingDialog()
|
AsyncAction.Confirming -> confirmationDialog()
|
||||||
is AsyncAction.Loading -> progressDialog()
|
is AsyncAction.Loading -> progressDialog()
|
||||||
is AsyncAction.Failure -> {
|
is AsyncAction.Failure -> {
|
||||||
if (onRetry == null) {
|
if (onRetry == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user