summaryrefslogtreecommitdiffstats
path: root/web/react/components/navbar.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-10 15:45:19 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-11-17 11:04:32 -0500
commit69e378c556e817ce494af8511220389407dbed89 (patch)
tree64e44392d80213a134c63bf08780dc1a6ac8263d /web/react/components/navbar.jsx
parent66638c4f70adb3fa2777af03c6175347b8dbee6b (diff)
downloadchat-69e378c556e817ce494af8511220389407dbed89.tar.gz
chat-69e378c556e817ce494af8511220389407dbed89.tar.bz2
chat-69e378c556e817ce494af8511220389407dbed89.zip
Converted ChannelNotificationsModal to React-Bootstrap
Diffstat (limited to 'web/react/components/navbar.jsx')
-rw-r--r--web/react/components/navbar.jsx14
1 files changed, 6 insertions, 8 deletions
diff --git a/web/react/components/navbar.jsx b/web/react/components/navbar.jsx
index d587c1915..85be96a92 100644
--- a/web/react/components/navbar.jsx
+++ b/web/react/components/navbar.jsx
@@ -7,6 +7,7 @@ const NotifyCounts = require('./notify_counts.jsx');
const ChannelMembersModal = require('./channel_members_modal.jsx');
const ChannelInfoModal = require('./channel_info_modal.jsx');
const ChannelInviteModal = require('./channel_invite_modal.jsx');
+const ChannelNotificationsModal = require('./channel_notifications_modal.jsx');
const ToggleModalButton = require('./toggle_modal_button.jsx');
const UserStore = require('../stores/user_store.jsx');
@@ -229,16 +230,13 @@ export default class Navbar extends React.Component {
if (!isDirect) {
notificationPreferenceOption = (
<li role='presentation'>
- <a
+ <ToggleModalButton
role='menuitem'
- href='#'
- data-toggle='modal'
- data-target='#channel_notifications'
- data-title={channel.display_name}
- data-channelid={channel.id}
+ dialogType={ChannelNotificationsModal}
+ dialogProps={{channel}}
>
- {'Notification Preferences'}
- </a>
+ {'Notification Preferences'}
+ </ToggleModalButton>
</li>
);
}