From c3655e38eaa00f60152d09dadb7c25cad71eb805 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 15 Oct 2024 11:14:16 +0200 Subject: [PATCH] Updated to new data model, added bank and account display name --- .../kotlin/net/codinux/banking/ui/screens/FeedbackScreen.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/FeedbackScreen.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/FeedbackScreen.kt index 77b10e2..743dcc9 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/FeedbackScreen.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/FeedbackScreen.kt @@ -24,11 +24,11 @@ fun FeedbackScreen(onClosed: () -> Unit) { val messageLog by remember { mutableStateOf(DI.bankingService.getMessageLog()) } - val displayedLogEntries by remember { derivedStateOf { messageLog } } + val displayedLogEntries by remember { derivedStateOf { messageLog.sortedBy { it.messageNumber } } } val displayedLogEntriesText by remember(displayedLogEntries) { derivedStateOf { displayedLogEntries.map { - "${it.messageNumberString} ${it.type} ${it.messageCategory} ${it.messageSubCategory}${NewLine}${it.message}" + "${it.messageNumberString} ${it.bank?.displayName ?: ""} ${it.account?.displayName ?: ""} ${it.type} ${it.jobType} ${it.messageCategory}${NewLine}${it.message}" }.joinToString(NewLine + NewLine) } }