summaryrefslogtreecommitdiffstats
path: root/web/react/components/sidebar.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-09-16 09:44:52 -0700
committerCorey Hulen <corey@hulen.com>2015-09-16 09:44:52 -0700
commit9828d84f01147ffb87b372d20681f91325ecfcf0 (patch)
treedc6ebe8374320ae53d199a87a9fcd51f103f8905 /web/react/components/sidebar.jsx
parent1220a0985876a63f59f2e469d03910cf0e609226 (diff)
parent28b61e6437a75be4e181188fcbbf9919239daf72 (diff)
downloadchat-9828d84f01147ffb87b372d20681f91325ecfcf0.tar.gz
chat-9828d84f01147ffb87b372d20681f91325ecfcf0.tar.bz2
chat-9828d84f01147ffb87b372d20681f91325ecfcf0.zip
Merge pull request #691 from asaadmahmoodspin/ui-changes
UI Updates for multiple tickets
Diffstat (limited to 'web/react/components/sidebar.jsx')
-rw-r--r--web/react/components/sidebar.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx
index 977fecb5c..697fc09c9 100644
--- a/web/react/components/sidebar.jsx
+++ b/web/react/components/sidebar.jsx
@@ -348,6 +348,11 @@ export default class Sidebar extends React.Component {
);
}
+ var badgeClass;
+ if (msgCount > 0) {
+ badgeClass = 'has-badge';
+ }
+
// set up status icon for direct message channels
var status = null;
if (channel.type === 'D') {
@@ -408,7 +413,7 @@ export default class Sidebar extends React.Component {
className={linkClass}
>
<a
- className={'sidebar-channel ' + titleClass}
+ className={'sidebar-channel ' + titleClass + ' ' + badgeClass}
href={href}
onClick={handleClick}
>