fix: extract long toast string to val, fix indentation

This commit is contained in:
M57
2026-06-21 17:18:59 +03:00
parent ab92b31d2e
commit fea7820740
2 changed files with 3 additions and 2 deletions
@@ -62,10 +62,11 @@ class ChannelsViewModel : ViewModel() {
} }
when (result) { when (result) {
is NetworkResult.Success -> { is NetworkResult.Success -> {
val message = "$platformId configured successfully — restart the gateway for changes to take effect"
_uiState.update { _uiState.update {
it.copy( it.copy(
isLoading = false, isLoading = false,
toastMessage = "$platformId configured successfully — restart the gateway for changes to take effect", toastMessage = message,
) )
} }
loadPlatforms() loadPlatforms()