ThemeDrawer: Change theme from anywhere and preview them (#100405)

* ThemeDrawer: Change theme from anywhere and preview them

* Update

* added subtitle

* Use new component

* Fixes

* Fix runtime ony wrong prop

* Fixed saving issue

* update lang file

* Fixed circular dep

* fix import
This commit is contained in:
Torkel Ödegaard
2025-03-11 12:03:10 +01:00
committed by GitHub
parent ea89a68028
commit b4366db1f1
13 changed files with 175 additions and 37 deletions
@@ -296,18 +296,6 @@ func (s *ServiceImpl) getProfileNode(c *contextmodel.ReqContext) *navtree.NavLin
})
}
if !s.cfg.DisableSignoutMenu {
// add sign out first
children = append(children, &navtree.NavLink{
Text: "Sign out",
Id: "sign-out",
Url: s.cfg.AppSubURL + "/logout",
Icon: "arrow-from-right",
Target: "_self",
HideFromTabs: true,
})
}
return &navtree.NavLink{
Text: c.SignedInUser.GetName(),
SubTitle: login,