mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 18:08:25 +00:00
Allow to hide classification settings in the webapp
This commit is contained in:
@ -30,6 +30,13 @@ docspell.server {
|
||||
# In order to keep this low, a limit can be defined here.
|
||||
max-note-length = 180
|
||||
|
||||
|
||||
# This defines whether the classification form in the collective
|
||||
# settings is displayed or not. If all joex instances have document
|
||||
# classification disabled, it makes sense to hide its settings from
|
||||
# users.
|
||||
show-classification-settings = true
|
||||
|
||||
# Authentication.
|
||||
auth {
|
||||
|
||||
|
@ -14,6 +14,7 @@ case class Config(
|
||||
bind: Config.Bind,
|
||||
backend: BackendConfig,
|
||||
auth: Login.Config,
|
||||
showClassificationSettings: Boolean,
|
||||
integrationEndpoint: Config.IntegrationEndpoint,
|
||||
maxItemPageSize: Int,
|
||||
maxNoteLength: Int,
|
||||
|
@ -17,7 +17,8 @@ case class Flags(
|
||||
integrationEnabled: Boolean,
|
||||
fullTextSearchEnabled: Boolean,
|
||||
maxPageSize: Int,
|
||||
maxNoteLength: Int
|
||||
maxNoteLength: Int,
|
||||
showClassificationSettings: Boolean
|
||||
)
|
||||
|
||||
object Flags {
|
||||
@ -30,7 +31,8 @@ object Flags {
|
||||
cfg.integrationEndpoint.enabled,
|
||||
cfg.fullTextSearch.enabled,
|
||||
cfg.maxItemPageSize,
|
||||
cfg.maxNoteLength
|
||||
cfg.maxNoteLength,
|
||||
cfg.showClassificationSettings
|
||||
)
|
||||
|
||||
implicit val jsonEncoder: Encoder[Flags] =
|
||||
|
Reference in New Issue
Block a user