summaryrefslogtreecommitdiffstats
path: root/webapp/components/needs_team/needs_team.jsx
diff options
context:
space:
mode:
authorDavid Meza <dmeza@users.noreply.github.com>2017-08-03 07:59:42 -0500
committerJoram Wilander <jwawilander@gmail.com>2017-08-03 08:59:42 -0400
commitb54d1342990253d3fe4a00c64df27cdd1bb0719b (patch)
treedadf9452248080b1a976d37430409696091fe52b /webapp/components/needs_team/needs_team.jsx
parent19804c4e40340cc4c0093197f71216719ffe4050 (diff)
downloadchat-b54d1342990253d3fe4a00c64df27cdd1bb0719b.tar.gz
chat-b54d1342990253d3fe4a00c64df27cdd1bb0719b.tar.bz2
chat-b54d1342990253d3fe4a00c64df27cdd1bb0719b.zip
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
Diffstat (limited to 'webapp/components/needs_team/needs_team.jsx')
-rw-r--r--webapp/components/needs_team/needs_team.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/components/needs_team/needs_team.jsx b/webapp/components/needs_team/needs_team.jsx
index e86e4fb11..7b8630f40 100644
--- a/webapp/components/needs_team/needs_team.jsx
+++ b/webapp/components/needs_team/needs_team.jsx
@@ -45,6 +45,7 @@ import ImportThemeModal from 'components/user_settings/import_theme_modal.jsx';
import InviteMemberModal from 'components/invite_member_modal.jsx';
import LeaveTeamModal from 'components/leave_team_modal.jsx';
import ResetStatusModal from 'components/reset_status_modal';
+import LeavePrivateChannelModal from 'components/modals/leave_private_channel_modal.jsx';
import iNoBounce from 'inobounce';
import * as UserAgent from 'utils/user_agent.jsx';
@@ -231,6 +232,7 @@ export default class NeedsTeam extends React.Component {
<DeletePostModal/>
<RemovedFromChannelModal/>
<ResetStatusModal/>
+ <LeavePrivateChannelModal/>
</div>
</div>
);