Updated to new data model, added bank and account display name
This commit is contained in:
parent
bca359d4ed
commit
c3655e38ea
|
@ -24,11 +24,11 @@ fun FeedbackScreen(onClosed: () -> Unit) {
|
||||||
|
|
||||||
val messageLog by remember { mutableStateOf(DI.bankingService.getMessageLog()) }
|
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) {
|
val displayedLogEntriesText by remember(displayedLogEntries) {
|
||||||
derivedStateOf { displayedLogEntries.map {
|
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) }
|
}.joinToString(NewLine + NewLine) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue