+99 badge when notifications are greater the 99

This commit is contained in:
wmwragg 2016-07-21 18:50:07 +01:00
parent 762873350a
commit 922bb0f402

View file

@ -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';
}