fix: extract long toast string to val, fix indentation
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user