- Schadensliste wurde implementiert
This commit is contained in:
@@ -133,6 +133,8 @@ fun ContentScreen(
|
||||
// NEU: State für Filter-Dialog
|
||||
var showFilterDialog by remember { mutableStateOf(false) }
|
||||
|
||||
var showDamageList by remember { mutableStateOf(false) }
|
||||
|
||||
Box(modifier = modifier.fillMaxSize()) {
|
||||
// Map
|
||||
MapSegment(
|
||||
@@ -140,6 +142,18 @@ fun ContentScreen(
|
||||
mapViewModel = mapViewModel
|
||||
)
|
||||
|
||||
// Dialog
|
||||
if (showDamageList) {
|
||||
DamageListDialog(
|
||||
onDismiss = { showDamageList = false },
|
||||
onDamageClick = { feature ->
|
||||
mapViewModel.selectedFeature = feature
|
||||
mapViewModel.showFeatureInfo = true
|
||||
},
|
||||
mapViewModel = mapViewModel
|
||||
)
|
||||
}
|
||||
|
||||
// Report Overlay
|
||||
if (showReport) {
|
||||
ReportOverlay(
|
||||
@@ -196,7 +210,7 @@ fun ContentScreen(
|
||||
SliderMenuItem(
|
||||
text = "Schadensliste",
|
||||
icon = Icons.Default.FormatListNumbered,
|
||||
onClick = { /* TODO */ }
|
||||
onClick = { showDamageList = true }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user