enable search in web ui

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2022-04-22 10:47:34 +00:00
parent 190ee68c95
commit c17717d7c9
3 changed files with 6 additions and 7 deletions
+3 -1
View File
@@ -236,7 +236,9 @@ func frontendConfigFromStruct(c *cli.Context, cfg *config.Config, filesCfg map[s
"preferred_upload_type": cfg.Reva.ChecksumPreferredUploadType,
},
"files": filesCfg,
"dav": map[string]interface{}{},
"dav": map[string]interface{}{
"reports": []string{"search-files"},
},
"files_sharing": map[string]interface{}{
"api_enabled": true,
"resharing": false,
@@ -51,6 +51,9 @@ func DefaultConfig() *config.Config {
Scope: "openid profile email",
},
Apps: []string{"files", "search", "preview", "text-editor", "pdf-viewer", "external"},
Options: map[string]interface{}{
"hideSearchBar": false,
},
},
},
}
-6
View File
@@ -66,12 +66,6 @@ func (p Web) getPayload() (payload []byte, err error) {
if p.config.Web.Path == "" {
// render dynamically using config
// provide default ocis-web options
if p.config.Web.Config.Options == nil {
p.config.Web.Config.Options = make(map[string]interface{})
p.config.Web.Config.Options["hideSearchBar"] = true
}
// build theme url
if themeServer, err := url.Parse(p.config.Web.ThemeServer); err == nil {
p.config.Web.Config.Theme = themeServer.String() + p.config.Web.ThemePath