diff --git a/app/src/main/java/com/ivy/wallet/ui/home/HomeTab.kt b/app/src/main/java/com/ivy/wallet/ui/home/HomeTab.kt index 588b94246f..b0b4efcea0 100644 --- a/app/src/main/java/com/ivy/wallet/ui/home/HomeTab.kt +++ b/app/src/main/java/com/ivy/wallet/ui/home/HomeTab.kt @@ -154,6 +154,7 @@ private fun BoxWithConstraintsScope.UI( mutableStateOf(null) } var moreMenuExpanded by remember { mutableStateOf(ivyContext.moreMenuExpanded) } + var skipAllModalVisible by remember { mutableStateOf(false) } val setMoreMenuExpanded = { expanded: Boolean -> moreMenuExpanded = expanded ivyContext.setMoreMenuExpanded(expanded) @@ -255,7 +256,7 @@ private fun BoxWithConstraintsScope.UI( onPayOrGet = onPayOrGet, onDismiss = onDismissCustomerJourneyCard, onSkipTransaction = onSkipTransaction, - onSkipAllTransactions = onSkipAllTransactions + onSkipAllTransactions = { skipAllModalVisible = true } ) } @@ -306,6 +307,16 @@ private fun BoxWithConstraintsScope.UI( ) { onSetPeriod(it) } + + DeleteModal( + visible = skipAllModalVisible, + title = stringResource(R.string.confirm_skip_all), + description = stringResource(R.string.confirm_skip_all_description), + dismiss = { skipAllModalVisible = false } + ) { + onSkipAllTransactions(overdue) + skipAllModalVisible = false + } } @ExperimentalAnimationApi diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 6fbd7f8495..77a4f05368 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -429,4 +429,6 @@ Generando reporte… " Ordenar por" Saltar todo + Confirmar saltar todo + ¿Está seguro de saltar todas las transacciones planeadas caducadas? diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d52a58e841..66f0c239b7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -429,4 +429,6 @@ Generating report… Sort by Skip all + Confirm skip all + Are you sure that you want to skip all overdue planned transactions?