Allow to hide classification settings in the webapp

This commit is contained in:
Eike Kettner
2020-09-05 16:00:19 +02:00
parent 5ae994e903
commit 1dcccbcf7d
6 changed files with 27 additions and 4 deletions

View File

@ -277,7 +277,7 @@ view flags settings model =
, h3
[ classList
[ ( "ui dividing header", True )
, ( "invisible hidden", False )
, ( "invisible hidden", not flags.config.showClassificationSettings )
]
]
[ text "Document Classifier"
@ -285,7 +285,7 @@ view flags settings model =
, div
[ classList
[ ( "field", True )
, ( "invisible hidden", False )
, ( "invisible hidden", not flags.config.showClassificationSettings )
]
]
[ Html.map ClassifierSettingMsg

View File

@ -18,6 +18,7 @@ type alias Config =
, fullTextSearchEnabled : Bool
, maxPageSize : Int
, maxNoteLength : Int
, showClassificationSettings : Bool
}