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. --- app/diagnostics.go | 1 + 1 file changed, 1 insertion(+) (limited to 'app') diff --git a/app/diagnostics.go b/app/diagnostics.go index f05d90bec..62dcc0b64 100644 --- a/app/diagnostics.go +++ b/app/diagnostics.go @@ -243,6 +243,7 @@ func trackConfig() { "isdefault_custom_description_text": isDefault(*utils.Cfg.TeamSettings.CustomDescriptionText, model.TEAM_SETTINGS_DEFAULT_CUSTOM_DESCRIPTION_TEXT), "isdefault_user_status_away_timeout": isDefault(*utils.Cfg.TeamSettings.UserStatusAwayTimeout, model.TEAM_SETTINGS_DEFAULT_USER_STATUS_AWAY_TIMEOUT), "restrict_private_channel_manage_members": *utils.Cfg.TeamSettings.RestrictPrivateChannelManageMembers, + "enable_X_to_leave_channels_from_LHS": *utils.Cfg.TeamSettings.EnableXToLeaveChannelsFromLHS, "experimental_town_square_is_read_only": *utils.Cfg.TeamSettings.ExperimentalTownSquareIsReadOnly, }) -- cgit v1.2.3-1-g7c22