From b54d1342990253d3fe4a00c64df27cdd1bb0719b Mon Sep 17 00:00:00 2001 From: David Meza Date: Thu, 3 Aug 2017 07:59:42 -0500 Subject: PLT-6484 Add /leave command to leave a channel (#6402) * PLT-6484 Add /leave command to leave a channel * Text changes requeted on review. * PLT-6484 Display the right error message when trying to /leave town-square * PLT-6484 Be able to execute /leave command in direct and group message channels with the same effect as clicking x * PLT-6484 Refactor to create new leave_private_channel_modal.jsx * PLT-6484 Remove previous leave private channel logic to use new leave_private_channel_modal.jsx * Remove dot in command description. Change localized error when leaving Town square. * disable /leave command in reply threads on the right-hand sidebar, since it is not obvious which channel you should leave --- webapp/utils/constants.jsx | 1 + 1 file changed, 1 insertion(+) (limited to 'webapp/utils') diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx index e9246fdaf..60151fc8e 100644 --- a/webapp/utils/constants.jsx +++ b/webapp/utils/constants.jsx @@ -180,6 +180,7 @@ export const ActionTypes = keyMirror({ TOGGLE_CHANNEL_HEADER_UPDATE_MODAL: null, TOGGLE_CHANNEL_PURPOSE_UPDATE_MODAL: null, TOGGLE_CHANNEL_NAME_UPDATE_MODAL: null, + TOGGLE_LEAVE_PRIVATE_CHANNEL_MODAL: null, SUGGESTION_PRETEXT_CHANGED: null, SUGGESTION_RECEIVED_SUGGESTIONS: null, -- cgit v1.2.3-1-g7c22