Commit 17861985 by qhyou11 Committed by Torkel Ödegaard

fix theme parameter not working problem while prefer theme set to light (#13232)

parent f5ee91f8
......@@ -91,6 +91,9 @@ func setIndexViewData(c *m.ReqContext) (*dtos.IndexViewData, error) {
if themeURLParam == "light" {
data.User.LightTheme = true
data.Theme = "light"
} else if themeURLParam == "dark" {
data.User.LightTheme = false
data.Theme = "dark"
}
if hasEditPermissionInFoldersQuery.Result {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment