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

@ -15,6 +15,7 @@ let
base-url = "http://localhost:7880";
max-item-page-size = 200;
max-note-length = 180;
show-classification-settings = true;
bind = {
address = "localhost";
port = 7880;
@ -136,6 +137,17 @@ in {
'';
};
show-classification-settings = mkOption {
type = types.bool;
default = defaults.show-classification-settings;
description = ''
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.
'';
};
bind = mkOption {
type = types.submodule({
options = {