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
-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