Sidemenu: Refactor BottomNavLinks to use SideMenuDropDown (#38598)

* Sidemenu: Attempt to refactor BottomNavLinks to use SideMenuDropDown

* BottomNavLinks: Rewrite existing enzyme tests in RTL

* BottomNavLinks: Use object spreading instead of slicing
This commit is contained in:
Ashley Harrison
2021-08-31 10:37:51 +01:00
committed by GitHub
parent e47a60f511
commit 7a242afcd6
10 changed files with 166 additions and 314 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ func (hs *HTTPServer) getProfileNode(c *models.ReqContext) *dtos.NavLink {
if setting.AddChangePasswordLink() {
children = append(children, &dtos.NavLink{
Text: "Change password", Id: "change-password", Url: hs.Cfg.AppSubURL + "/profile/password",
Icon: "lock", HideFromMenu: true,
Icon: "lock",
})
}