diff --git a/shared/src/commonMain/kotlin/app/klottr/ui/DetailDialogsShell.kt b/shared/src/commonMain/kotlin/app/klottr/ui/DetailDialogsShell.kt index 987a128..92608fe 100644 --- a/shared/src/commonMain/kotlin/app/klottr/ui/DetailDialogsShell.kt +++ b/shared/src/commonMain/kotlin/app/klottr/ui/DetailDialogsShell.kt @@ -189,12 +189,6 @@ fun FornsokDialog( color = MaterialTheme.colorScheme.onSurfaceVariant ), actions = { - Button( - onClick = { - AppNavigator.openMap(platLat, platLon, title) - } - ) { Text("Maps") } - Button( onClick = { val u = link ?: return@Button @@ -202,6 +196,12 @@ fun FornsokDialog( }, enabled = link != null ) { Text("Läs mer") } + + Button( + onClick = { + AppNavigator.openMap(platLat, platLon, title) + } + ) { Text("Maps") } } ) } @@ -323,12 +323,6 @@ fun DmDialog( color = MaterialTheme.colorScheme.onSurfaceVariant ), actions = { - Button( - onClick = { - AppNavigator.openMap(item.lat, item.lon, displayTitle) - } - ) { Text("Maps") } - Button( onClick = { val u = item.webUrl // Ändrad: objectUrl -> webUrl @@ -338,6 +332,11 @@ fun DmDialog( }, enabled = !item.webUrl.isNullOrBlank() // Ändrad: objectUrl -> webUrl ) { Text("Läs mer") } + Button( + onClick = { + AppNavigator.openMap(item.lat, item.lon, displayTitle) + } + ) { Text("Maps") } } ) }