diff --git a/changelog/unreleased/fix-bring-back-settings-ui.md b/changelog/unreleased/fix-bring-back-settings-ui.md new file mode 100644 index 00000000000..6d1dd1dac97 --- /dev/null +++ b/changelog/unreleased/fix-bring-back-settings-ui.md @@ -0,0 +1,5 @@ +Bugfix: Bring back the settings UI in Web + +We've fixed the oC Web configuration in oCIS so that the settings UI will be shown again in Web. + +https://github.com/owncloud/ocis/pull/4691 diff --git a/services/web/pkg/config/defaults/defaultconfig.go b/services/web/pkg/config/defaults/defaultconfig.go index cf08feeb1d5..2ed1d41bf42 100644 --- a/services/web/pkg/config/defaults/defaultconfig.go +++ b/services/web/pkg/config/defaults/defaultconfig.go @@ -49,6 +49,10 @@ func DefaultConfig() *config.Config { }, Apps: []string{"files", "search", "text-editor", "pdf-viewer", "external", "user-management"}, ExternalApps: []config.ExternalApp{ + { + ID: "settings", + Path: "/settings.js", + }, { ID: "preview", Path: "web-app-preview", diff --git a/services/web/pkg/service/v0/service.go b/services/web/pkg/service/v0/service.go index a99c4c2930b..d3aef6e4254 100644 --- a/services/web/pkg/service/v0/service.go +++ b/services/web/pkg/service/v0/service.go @@ -73,15 +73,6 @@ func (p Web) getPayload() (payload []byte, err error) { p.config.Web.Config.Theme = p.config.Web.ThemePath } - if p.config.Web.Config.ExternalApps == nil { - p.config.Web.Config.ExternalApps = []config.ExternalApp{ - { - ID: "settings", - Path: "/settings.js", - }, - } - } - // make apps render as empty array if it is empty // TODO remove once https://github.com/golang/go/issues/27589 is fixed if len(p.config.Web.Config.Apps) == 0 {