fix: import config missing data

This commit is contained in:
andrekir 2023-10-11 18:38:06 -03:00
parent 7a01c4b228
commit d71a9171ec
3 changed files with 4 additions and 4 deletions

View file

@ -234,6 +234,7 @@ fun RadioConfigNavHost(
val radioConfigState by viewModel.radioConfigState.collectAsStateWithLifecycle()
var location by remember(node) { mutableStateOf(node?.position) } // FIXME
val deviceProfile by viewModel.deviceProfile.collectAsStateWithLifecycle()
val isWaiting = radioConfigState.responseState !is ResponseState.Empty
var showEditDeviceProfileDialog by remember { mutableStateOf(false) }
@ -254,7 +255,6 @@ fun RadioConfigNavHost(
}
}
val deviceProfile = viewModel.deviceProfile
if (showEditDeviceProfileDialog) EditDeviceProfileDialog(
title = if (deviceProfile != null) "Import configuration" else "Export configuration",
deviceProfile = deviceProfile ?: viewModel.currentDeviceProfile,

View file

@ -51,7 +51,7 @@ fun <T> PacketResponseStateDialog(
if (state.total == state.completed) onComplete()
}
if (state is ResponseState.Success) {
Text("Delivery confirmed.")
Text("Delivery confirmed")
}
if (state is ResponseState.Error) {
Text(text = "Error\n", textAlign = TextAlign.Center)