From 816bfbeb91b9cd64a8a85dc37cc0e82554409c14 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Fri, 21 Jul 2017 21:04:41 +0200 Subject: [PLT-6708] /purpose [text] slash command: Edit the channel purpose (#6569) * /purpose [text] slash command: Edit the channel purpose * update command on server side to check for direct or group channels * update stings and block the dialog when is DM or GM * update per review * remove duplicate websocker event and apply the same for /header command * update per review * update --- webapp/actions/global_actions.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'webapp/actions') diff --git a/webapp/actions/global_actions.jsx b/webapp/actions/global_actions.jsx index e37e702a2..b3dc078c4 100644 --- a/webapp/actions/global_actions.jsx +++ b/webapp/actions/global_actions.jsx @@ -225,6 +225,14 @@ export function showChannelHeaderUpdateModal(channel) { }); } +export function showChannelPurposeUpdateModal(channel) { + AppDispatcher.handleViewAction({ + type: ActionTypes.TOGGLE_CHANNEL_PURPOSE_UPDATE_MODAL, + value: true, + channel + }); +} + export function showGetPostLinkModal(post) { AppDispatcher.handleViewAction({ type: ActionTypes.TOGGLE_GET_POST_LINK_MODAL, -- cgit v1.2.3-1-g7c22