Move from +99 to 99+ for more than 99 messages

This commit is contained in:
wmwragg 2016-07-25 14:39:15 +01:00
parent e4dd6c8dbe
commit 8b8486a8d0

View file

@ -105,7 +105,7 @@ module.exports = React.createClass({
if (this.state.badgeHover) {
badgeContent = "\u00B7\u00B7\u00B7";
} else if (this.props.highlight || notificationCount > 0) {
var limitedCount = (notificationCount > 99) ? '+99' : notificationCount;
var limitedCount = (notificationCount > 99) ? '99+' : notificationCount;
badgeContent = notificationCount ? limitedCount : '!';
} else {
badgeContent = '\u200B';