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

* Profile: Remove sign-out tab

* Fixed formatting

* Updated formatting
This commit is contained in:
Torkel Ödegaard 2019-12-02 18:03:28 +01:00 committed by GitHub
parent a7a9bcbcbb
commit 87d19787b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,12 @@ func (hs *HTTPServer) setIndexViewData(c *m.ReqContext) (*dtos.IndexViewData, er
if !setting.DisableSignoutMenu {
// add sign out first
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,
})
}