Commit 87d19787 by Torkel Ödegaard Committed by GitHub

Profile: Remove sign-out tab from profile page (#20802)

* Profile: Remove sign-out tab

* Fixed formatting

* Updated formatting
parent a7a9bcbc
...@@ -177,7 +177,12 @@ func (hs *HTTPServer) setIndexViewData(c *m.ReqContext) (*dtos.IndexViewData, er ...@@ -177,7 +177,12 @@ func (hs *HTTPServer) setIndexViewData(c *m.ReqContext) (*dtos.IndexViewData, er
if !setting.DisableSignoutMenu { if !setting.DisableSignoutMenu {
// add sign out first // add sign out first
profileNode.Children = append(profileNode.Children, &dtos.NavLink{ profileNode.Children = append(profileNode.Children, &dtos.NavLink{
Text: "Sign out", Id: "sign-out", Url: setting.AppSubUrl + "/logout", Icon: "fa fa-fw fa-sign-out", Target: "_self", Text: "Sign out",
Id: "sign-out",
Url: setting.AppSubUrl + "/logout",
Icon: "fa fa-fw fa-sign-out",
Target: "_self",
HideFromTabs: true,
}) })
} }
......
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