diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-09-06 20:55:11 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-09-07 20:37:17 +0200 |
commit | 324ce93368bbac88a5b53083c8932ec175450f55 (patch) | |
tree | 019a413b5d4b20bad7114081e1df5afe4f01fe53 /app/javascript/flavours/glitch/features/drawer/header | |
parent | ba4521b175a2d0906e2a62e93e39cb80fa9286c9 (diff) |
Add preferences for notification badges
Diffstat (limited to 'app/javascript/flavours/glitch/features/drawer/header')
-rw-r--r-- | app/javascript/flavours/glitch/features/drawer/header/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/drawer/header/index.js b/app/javascript/flavours/glitch/features/drawer/header/index.js index 435538de4..7fefd32c9 100644 --- a/app/javascript/flavours/glitch/features/drawer/header/index.js +++ b/app/javascript/flavours/glitch/features/drawer/header/index.js @@ -47,6 +47,7 @@ const messages = defineMessages({ export default function DrawerHeader ({ columns, unreadNotifications, + showNotificationsBadge, intl, onSettingsClick, }) { @@ -81,7 +82,7 @@ export default function DrawerHeader ({ > <span className='icon-badge-wrapper'> <Icon icon='bell' /> - { unreadNotifications > 0 && <div className='icon-badge' />} + { showNotificationsBadge && unreadNotifications > 0 && <div className='icon-badge' />} </span> </Link> ))} @@ -119,6 +120,7 @@ export default function DrawerHeader ({ DrawerHeader.propTypes = { columns: ImmutablePropTypes.list, unreadNotifications: PropTypes.number, + showNotificationsBadge: PropTypes.bool, intl: PropTypes.object, onSettingsClick: PropTypes.func, }; |