diff --git a/CHANGELOG.md b/CHANGELOG.md index fdd384626dd..96a7f7ce0c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # 2.0.0-RC1 (unreleased) +**Enhancements** +- [Issue #1701](https://github.com/grafana/grafana/issues/1701). Share modal: Override UI theme via URL param for Share link, rendered panel, or embedded panel + **FIxes** - [Issue #1703](https://github.com/grafana/grafana/issues/1703). Unsaved changes: Do not show for users with role `Viewer` - [Issue #1675](https://github.com/grafana/grafana/issues/1675). Data source proxy: Fixed issue with Gzip enabled and data source proxy diff --git a/docs/sources/guides/whats-new-in-v2.md b/docs/sources/guides/whats-new-in-v2.md index fc40506ef36..ed27cd9af42 100644 --- a/docs/sources/guides/whats-new-in-v2.md +++ b/docs/sources/guides/whats-new-in-v2.md @@ -68,7 +68,7 @@ You can embed a single panel on another web page using the panel share dialog. B with a graph panel (taken from dashoard snapshot at [snapshot.raintank.io](http://snapshot.raintank.io). Try hovering or zooming on the panel below! - + ## New dashboard top header diff --git a/pkg/api/index.go b/pkg/api/index.go index ceafc37b7c1..d9ecf65b699 100644 --- a/pkg/api/index.go +++ b/pkg/api/index.go @@ -28,6 +28,11 @@ func setIndexViewData(c *middleware.Context) error { currentUser.Name = currentUser.Login } + themeUrlParam := c.Query("theme") + if themeUrlParam == "light" { + currentUser.LightTheme = true + } + c.Data["User"] = currentUser c.Data["Settings"] = settings c.Data["AppUrl"] = setting.AppUrl diff --git a/public/app/features/dashboard/partials/shareModal.html b/public/app/features/dashboard/partials/shareModal.html index 6b9ff8aef16..75af7ee4c22 100644 --- a/public/app/features/dashboard/partials/shareModal.html +++ b/public/app/features/dashboard/partials/shareModal.html @@ -16,19 +16,25 @@