Rename parameter
This commit is contained in:
parent
d0f1a7e3e0
commit
b466ade6a1
2 changed files with 4 additions and 4 deletions
|
|
@ -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) },
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue