From 87bcc648e7ae4d2e19659157d0ca797e759bcbe4 Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Thu, 20 Aug 2020 09:21:19 +0200 Subject: [PATCH] Add default external apps Accounts and Settings should be enabled by default from now on. --- pkg/service/v0/service.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkg/service/v0/service.go b/pkg/service/v0/service.go index 6545a9f36..3ddf5589e 100644 --- a/pkg/service/v0/service.go +++ b/pkg/service/v0/service.go @@ -68,6 +68,19 @@ func (p Phoenix) getPayload() (payload []byte, err error) { p.config.Phoenix.Config.Options["hideSearchBar"] = true } + if p.config.Phoenix.Config.ExternalApps == nil { + p.config.Phoenix.Config.ExternalApps = []config.ExternalApp{ + { + ID: "accounts", + Path: "https://localhost:9200/accounts.js", + }, + { + ID: "settings", + Path: "https://localhost:9200/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.Phoenix.Config.Apps) == 0 {