Skip to content

Commit

Permalink
update design library
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmateos committed Feb 21, 2024
1 parent 7ed9608 commit deaa176
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,6 @@ class DataValueRepository(
.byOptionSetUid().eq(it)
.orderBySortOrder(RepositoryScope.OrderByDirection.ASC)
.blockingGet()
.map { option -> "${option.code()}%${option.displayName()}" }
.map { option -> "${option.code()}_${option.displayName()}" }
} ?: emptyList()
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class MapFieldValueToUser(
}
}
ValueType.MULTI_TEXT -> field.value()?.split(", ")?.map { code ->
field.options().find { it.contains(code) }?.split("%")?.get(1)
field.options().find { it.contains(code) }?.split("_")?.get(1)
}?.joinToString(", ")
else -> field.value()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ fun DropDownOptions(
onDismissRequest = onDismiss,
) {
options.forEach { option ->
val code = option.split("%")[0]
val label = option.split("%")[1]
val code = option.split("_")[0]
val label = option.split("_")[1]
DropdownMenuItem(
onClick = {
onSelected.invoke(code, label)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ fun MultiOptionSelector(
) {
MultiSelectBottomSheet(
items = options.map { option ->
val code = option.split("%")[0]
val label = option.split("%")[1]
val code = option.split("_")[0]
val label = option.split("_")[1]
CheckBoxData(
uid = code,
checked = cell.value?.contains(label) == true,
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ kotlin = '1.9.21'
hilt = '2.47'
hiltCompiler = '1.0.0'
jacoco = '0.8.10'
designSystem = "0.2-20240215.110451-25"
designSystem = "0.2-20240221.124523-30"
dhis2sdk = "1.10.0-20240207.110936-11"
ruleEngine = "2.1.9"
appcompat = "1.6.1"
Expand Down

0 comments on commit deaa176

Please sign in to comment.