From 28b61e6437a75be4e181188fcbbf9919239daf72 Mon Sep 17 00:00:00 2001
From: Asaad Mahmood <Unknowngi@live.com>
Date: Wed, 16 Sep 2015 20:32:10 +0500
Subject: UI Updates for multiple tickets

---
 web/react/components/sidebar.jsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'web/react/components/sidebar.jsx')

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}
                 >
-- 
cgit v1.2.3-1-g7c22

