Display item notes in card view if configured

The user can set a maximum length of the item notes to display in each
card. If set to 0, it is hidden.
This commit is contained in:
Eike Kettner
2020-08-04 23:34:08 +02:00
parent 09d74b7e80
commit 08f953dd52
9 changed files with 99 additions and 17 deletions

View File

@ -15,7 +15,9 @@ case class Flags(
signupMode: SignupConfig.Mode,
docspellAssetPath: String,
integrationEnabled: Boolean,
fullTextSearchEnabled: Boolean
fullTextSearchEnabled: Boolean,
maxPageSize: Int,
maxNoteLength: Int
)
object Flags {
@ -26,7 +28,9 @@ object Flags {
cfg.backend.signup.mode,
s"/app/assets/docspell-webapp/${BuildInfo.version}",
cfg.integrationEndpoint.enabled,
cfg.fullTextSearch.enabled
cfg.fullTextSearch.enabled,
cfg.maxItemPageSize,
cfg.maxNoteLength
)
implicit val jsonEncoder: Encoder[Flags] =