+99 badge when notifications are greater the 99
This commit is contained in:
parent
762873350a
commit
922bb0f402
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ module.exports = React.createClass({
|
|||
if (this.state.badgeHover) {
|
||||
badgeContent = "\u00B7\u00B7\u00B7";
|
||||
} else if (this.props.highlight || notificationCount > 0) {
|
||||
badgeContent = notificationCount ? notificationCount : '!';
|
||||
var limitedCount = (notificationCount > 99) ? '+99' : notificationCount;
|
||||
badgeContent = notificationCount ? limitedCount : '!';
|
||||
} else {
|
||||
badgeContent = '\u200B';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue