Allow white labeling loading logo (#36174)

* Allow to whitelabeling loading logo

* Add loading_logo to documentation

* Change loading_logo to loading_logo_url
This commit is contained in:
Selene
2021-07-02 14:17:10 +02:00
committed by GitHub
parent 54acb18c5f
commit ef05596e07
4 changed files with 7 additions and 1 deletions
+1
View File
@@ -26,6 +26,7 @@ type IndexViewData struct {
AppTitle string
Sentry *setting.Sentry
ContentDeliveryURL string
LoadingLogo template.URL
// Nonce is a cryptographic identifier for use with Content Security Policy.
Nonce string
}
+1
View File
@@ -470,6 +470,7 @@ func (hs *HTTPServer) setIndexViewData(c *models.ReqContext) (*dtos.IndexViewDat
Sentry: &hs.Cfg.Sentry,
Nonce: c.RequestNonce,
ContentDeliveryURL: hs.Cfg.GetContentDeliveryURL(hs.License.ContentDeliveryPrefix()),
LoadingLogo: "public/img/grafana_icon.svg",
}
if hs.Cfg.FeatureToggles["accesscontrol"] {