From 1d30d619ff3f701244c1396b4a503911b2bac042 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 8 Sep 2024 20:53:30 +0200 Subject: [PATCH] Showing now 'Alle' instead of an empty text --- .../kotlin/net/codinux/banking/ui/appskeleton/FilterBar.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/FilterBar.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/FilterBar.kt index cc01ab8..7ee56db 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/FilterBar.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/appskeleton/FilterBar.kt @@ -66,7 +66,7 @@ fun FilterBar() { items = years, selectedItem = transactionsFilter.value.year, onSelectedItemChanged = { year -> transactionsFilter.value.year = year }, - getItemDisplayText = { year -> if (year == null) "" else year.toString() }, + getItemDisplayText = { year -> if (year == null) "Alle" else year.toString() }, modifier = Modifier.width(125.dp).padding(horizontal = horizontalPadding) ) @@ -76,7 +76,7 @@ fun FilterBar() { items = months, selectedItem = transactionsFilter.value.month?.let { months[it - 1] }, onSelectedItemChanged = { month -> transactionsFilter.value.month = (if (month == null) null else months.indexOf(month) + 1) }, - getItemDisplayText = { month -> if (month == null) "" else month }, + getItemDisplayText = { month -> if (month == null) "Alle" else month }, modifier = Modifier.width(154.dp) ) }