diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-09-16 20:32:10 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-09-16 20:32:10 +0500 |
commit | 28b61e6437a75be4e181188fcbbf9919239daf72 (patch) | |
tree | 021993130be91e2dafec6c7d67aa2bdb51863077 /web/react/components/sidebar.jsx | |
parent | d4887cef03e3321910d33d672c194d1966cd0aac (diff) | |
download | chat-28b61e6437a75be4e181188fcbbf9919239daf72.tar.gz chat-28b61e6437a75be4e181188fcbbf9919239daf72.tar.bz2 chat-28b61e6437a75be4e181188fcbbf9919239daf72.zip |
UI Updates for multiple tickets
Diffstat (limited to 'web/react/components/sidebar.jsx')
-rw-r--r-- | web/react/components/sidebar.jsx | 7 |
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} > |