refactor: ClientNotification messages as an alert dialog (#2072)

This commit is contained in:
James Rich 2025-06-10 15:15:58 +00:00 committed by GitHub
parent 607e5fd7c4
commit ad8f91482e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View file

@ -424,8 +424,14 @@ class UIViewModel @Inject constructor(
init {
radioConfigRepository.errorMessage.filterNotNull().onEach {
showSnackbar(it)
radioConfigRepository.clearErrorMessage()
showAlert(
title = app.getString(R.string.client_notification),
message = it,
onConfirm = {
radioConfigRepository.clearErrorMessage()
},
dismissable = false
)
}.launchIn(viewModelScope)
radioConfigRepository.localConfigFlow.onEach { config ->