mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
+99 badge when notifications are greater the 99
This commit is contained in:
@@ -105,7 +105,8 @@ module.exports = React.createClass({
|
|||||||
if (this.state.badgeHover) {
|
if (this.state.badgeHover) {
|
||||||
badgeContent = "\u00B7\u00B7\u00B7";
|
badgeContent = "\u00B7\u00B7\u00B7";
|
||||||
} else if (this.props.highlight || notificationCount > 0) {
|
} else if (this.props.highlight || notificationCount > 0) {
|
||||||
badgeContent = notificationCount ? notificationCount : '!';
|
var limitedCount = (notificationCount > 99) ? '+99' : notificationCount;
|
||||||
|
badgeContent = notificationCount ? limitedCount : '!';
|
||||||
} else {
|
} else {
|
||||||
badgeContent = '\u200B';
|
badgeContent = '\u200B';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user