summaryrefslogtreecommitdiffstats
path: root/web/react/components/channel_header.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-17 11:10:33 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-11-17 11:10:33 -0500
commit3d572be2f3bb0d4b6b2eb83b69a209234f807231 (patch)
tree4aa5cc719832ee6a283b75a0babb05896dec03fa /web/react/components/channel_header.jsx
parent69e378c556e817ce494af8511220389407dbed89 (diff)
downloadchat-3d572be2f3bb0d4b6b2eb83b69a209234f807231.tar.gz
chat-3d572be2f3bb0d4b6b2eb83b69a209234f807231.tar.bz2
chat-3d572be2f3bb0d4b6b2eb83b69a209234f807231.zip
Converted DeleteChannelModal to React-Bootstrap
Diffstat (limited to 'web/react/components/channel_header.jsx')
-rw-r--r--web/react/components/channel_header.jsx12
1 files changed, 5 insertions, 7 deletions
diff --git a/web/react/components/channel_header.jsx b/web/react/components/channel_header.jsx
index a0676e929..ffe7cbb5d 100644
--- a/web/react/components/channel_header.jsx
+++ b/web/react/components/channel_header.jsx
@@ -9,6 +9,7 @@ const ChannelInfoModal = require('./channel_info_modal.jsx');
const ChannelInviteModal = require('./channel_invite_modal.jsx');
const ChannelMembersModal = require('./channel_members_modal.jsx');
const ChannelNotificationsModal = require('./channel_notifications_modal.jsx');
+const DeleteChannelModal = require('./delete_channel_modal.jsx');
const ToggleModalButton = require('./toggle_modal_button.jsx');
const ChannelStore = require('../stores/channel_store.jsx');
@@ -300,16 +301,13 @@ export default class ChannelHeader extends React.Component {
key='delete_channel'
role='presentation'
>
- <a
+ <ToggleModalButton
role='menuitem'
- href='#'
- data-toggle='modal'
- data-target='#delete_channel'
- data-title={channel.display_name}
- data-channelid={channel.id}
+ dialogType={DeleteChannelModal}
+ dialogProps={{channel}}
>
{'Delete '}{channelTerm}{'...'}
- </a>
+ </ToggleModalButton>
</li>
);
}