Skip to content

Commit

Permalink
popUntil SecVault
Browse files Browse the repository at this point in the history
  • Loading branch information
SAUL committed Oct 28, 2024
1 parent 77833fa commit a4599d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import cafe.adriel.voyager.koin.koinScreenModel
import cafe.adriel.voyager.navigator.LocalNavigator
import ui.components.FormTextArea
import ui.components.FormTextField
import ui.screens.SecVaultScreen
import ui.theme.Font
import ui.theme.primary
import ui.theme.secondary
Expand Down Expand Up @@ -200,7 +201,7 @@ class CreditCardForm : Screen {
) {
Footer(
{ },
{ navigator?.pop() },
{ navigator?.popUntil { screen: Screen -> screen.key == SecVaultScreen().key } },
isFormValid
)
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/kotlin/ui/components/forms/passwordmgnt/NoteForm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import cafe.adriel.voyager.core.screen.Screen
import cafe.adriel.voyager.navigator.LocalNavigator
import ui.screens.SecVaultScreen
import ui.theme.primary
import ui.theme.secondary
import ui.theme.tertiary
Expand Down Expand Up @@ -60,7 +61,7 @@ class NoteForm : Screen {
) {
Footer(
{ },
{ navigator?.pop() },
{ navigator?.popUntil {screen: Screen -> screen.key == SecVaultScreen().key } },
true
)
}
Expand Down

0 comments on commit a4599d8

Please sign in to comment.