enable search in web ui
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user