Pop the Change password screen after a successfull change

This commit is contained in:
Artem Chepurnoy 2024-02-03 17:20:23 +02:00
parent f992ca22a2
commit fa03431510
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import com.artemchep.keyguard.feature.auth.common.TextFieldModel2
import com.artemchep.keyguard.feature.auth.common.util.validatedPassword
import com.artemchep.keyguard.feature.localization.TextHolder
import com.artemchep.keyguard.feature.navigation.state.RememberStateFlowScope
import com.artemchep.keyguard.feature.navigation.state.navigatePopSelf
import com.artemchep.keyguard.feature.navigation.state.produceScreenState
import com.artemchep.keyguard.res.Res
import kotlinx.coroutines.flow.combine
@ -165,6 +166,8 @@ private fun RememberStateFlowScope.ah(
type = ToastMessage.Type.SUCCESS,
)
message(msg)
// Pop the screen
navigatePopSelf()
}
io.launchIn(windowCoroutineScope)
},
@ -196,6 +199,8 @@ private fun RememberStateFlowScope.ah(
type = ToastMessage.Type.SUCCESS,
)
message(msg)
// Pop the screen
navigatePopSelf()
}
io.launchIn(windowCoroutineScope)
},