From 29b918d85d38e91bcbe26a7ce7c89a2b0e75aac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Horv=C3=A1th=20Istv=C3=A1n?= Date: Sun, 29 Sep 2024 15:22:07 +0200 Subject: [PATCH] Add preview to riddle overview --- .../kotlin/hu/bme/sch/cmsch/component/riddle/RiddleEntity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/kotlin/hu/bme/sch/cmsch/component/riddle/RiddleEntity.kt b/backend/src/main/kotlin/hu/bme/sch/cmsch/component/riddle/RiddleEntity.kt index de4296e1..b37ce0c2 100644 --- a/backend/src/main/kotlin/hu/bme/sch/cmsch/component/riddle/RiddleEntity.kt +++ b/backend/src/main/kotlin/hu/bme/sch/cmsch/component/riddle/RiddleEntity.kt @@ -37,7 +37,7 @@ data class RiddleEntity( @field:JsonView(value = [ Edit::class, Preview::class, FullDetails::class ]) @Column(nullable = false) @property:GenerateInput(type = INPUT_TYPE_FILE, order = 2, label = "A képrejtvény", fileType = "image") - @property:GenerateOverview(visible = false) + @property:GenerateOverview(columnName = "Kép", order = 0, renderer = OVERVIEW_TYPE_CDN_IMAGE, cdnImageFolder = "riddles") var imageUrl: String = "", @field:JsonView(value = [ Edit::class ])