feat: improve user token handling and add club selection clearing button in settings
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 43s

This commit is contained in:
Torsten Schulz (local)
2026-05-15 16:52:26 +02:00
parent d955577d9a
commit 40bd5e0745
3 changed files with 119 additions and 162 deletions

View File

@@ -5804,7 +5804,21 @@ private fun SettingsScreen(
.navigationBarsPadding()
.padding(horizontal = ScreenHorizontalPadding, vertical = 16.dp),
) {
Button(
onClick = {
dependencies.applicationScope.launch {
dependencies.clubManager.clearSelection()
}
},
modifier = Modifier
.fillMaxWidth()
.padding(bottom = 12.dp)
.heightIn(min = 56.dp),
) {
Text(tr("club.change", "Verein wechseln"), style = MaterialTheme.typography.h6)
}
Header(tr("mobile.more", "Mehr"))
DetailLine(tr("mobile.user", "Benutzer"), authState.username ?: "-")
DetailLine("Backend", dependencies.apiConfig.baseUrl)
DetailLine("Club", clubState.clubs.firstOrNull { it.id == clubState.currentClubId }?.name ?: "-")