-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Punktliste #1197
Punktliste #1197
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -126,6 +126,14 @@ object SøknadTilGenereltFormatMapper { | |||
if (entitet.label == "Om arbeidsforholdet ditt") { | |||
return listOf(feltlisteMap(entitet.label, list, VisningsVariant.TABELL_ARBEIDSFORHOLD)) | |||
} | |||
if (entitet.label == "Gjelder noe av dette deg?") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kanskje bedre å sjekke om den har alternativer?
is List<*> -> verdi.joinToString("\n\n") { it.toString() } | ||
else -> verdi?.toString() ?: "" | ||
} | ||
return listOf(mapOf("label" to entitet.label, "visningsVariant" to VisningsVariant.PUNKTLISTE, "verdi" to verdi, "alternativer" to entitet.alternativer?.joinToString(" / "))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
små pirk: er det ikke mer vanlig å separere elementer med ,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jo 100%, det med \n\n er bare slik det gjøres i dagens løsning. Vil på sikt egt. ikke ha det som en string i det hele tatt, men heller en liste eller noe sånt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎆
- Tester du i preprod med dagens prod og med denne PR-en?
- Løse konflikt
Lagt til punktliste som mulig visningsvariant.
Tror logikken kan forbedres (linje 129-136) men venter på endringene fra @fredrikmork på feltmappen. Lager en lapp i mellomtiden.