From b6456a675d140d6d80eb0874a5b6a89008e28eaa Mon Sep 17 00:00:00 2001 From: David Meza Date: Fri, 1 Sep 2017 13:21:09 -0500 Subject: Add x to be able to leave public and private channels (#7145) * Add config value EnableXToLeaveChannelsFromLHS that if true displays x to the right of private and public channels on the LHS. * Displays x to the right of private and public channels on the LHS based on if EnableXToLeaveChannelsFromLHS=true. * change the tooltip for private and public channels to `Leave channel` * Add client-side event for when user clicks the "x" button. Different for public, private, DM. --- utils/config.go | 1 + 1 file changed, 1 insertion(+) (limited to 'utils') diff --git a/utils/config.go b/utils/config.go index 642abfdf0..b99194c46 100644 --- a/utils/config.go +++ b/utils/config.go @@ -438,6 +438,7 @@ func getClientConfig(c *model.Config) map[string]string { props["RestrictPublicChannelDeletion"] = *c.TeamSettings.RestrictPublicChannelDeletion props["RestrictPrivateChannelDeletion"] = *c.TeamSettings.RestrictPrivateChannelDeletion props["RestrictPrivateChannelManageMembers"] = *c.TeamSettings.RestrictPrivateChannelManageMembers + props["EnableXToLeaveChannelsFromLHS"] = strconv.FormatBool(*c.TeamSettings.EnableXToLeaveChannelsFromLHS) props["TeammateNameDisplay"] = *c.TeamSettings.TeammateNameDisplay props["AndroidLatestVersion"] = c.ClientRequirements.AndroidLatestVersion -- cgit v1.2.3-1-g7c22