element-portable/src/components/structures
Travis Ralston 173669b375 Show the number of unread notifications above the bell on the right
Fixes https://github.com/vector-im/riot-web/issues/3383

This achieves the result by counting up the number of highlights across all rooms and setting that as the badge above the icon. If there are no highlights, nothing is displayed. The red highlight on the bell is done by abusing how the Tinter works: because it has access to the properties of the SVG that we'd need to override it, we give it a collection of colors it should use instead of the theme/tint it is trying to apply. This results in the Tinter using our warning color instead of whatever it was going to apply.

The RightPanel now listens for events to update the count too, otherwise when the user receives a ping they'd have to switch rooms to see the change.
2018-12-06 16:18:02 -07:00
..
login Use sensible logging 2018-11-27 13:41:34 -07:00
BottomLeftMenu.js eslint --fix src/ 2018-10-26 22:50:38 -05:00
CompatibilityPage.js eslint --fix src/ 2018-10-26 22:50:38 -05:00
ContextualMenu.js fix lint 2018-07-09 20:11:17 +01:00
CreateRoom.js eslint --fix src/ 2018-10-26 22:50:38 -05:00
FilePanel.js given we also want to hide widget events, hide all except m.room.message 2018-06-16 19:52:15 +01:00
GroupView.js Only mark group as failed to load for summary 2018-12-04 18:32:16 -06:00
HomePage.js Add visible guest warning to encourage login 2018-11-06 21:08:57 +01:00
InteractiveAuth.js Be more positive in property naming 2018-11-16 12:15:44 -07:00
LeftPanel.js eslint --fix src/ 2018-10-26 22:50:38 -05:00
LoggedInView.js eslint --fix src/ 2018-10-26 22:50:38 -05:00
LoginBox.js eslint --fix src/ 2018-10-26 22:50:38 -05:00
MatrixChat.js Merge remote-tracking branch 'origin/develop' into dbkr/e2e_backups 2018-10-29 16:20:45 +00:00
MessagePanel.js allow read receipts without an existing member in MessagePanel 2018-10-10 16:15:20 +02:00
MyGroups.js specify unique key to make react happy 2018-06-15 18:55:37 +01:00
NotificationPanel.js Dramatically simplify use of mx_fadable 2017-10-25 15:15:49 +01:00
RightPanel.js Show the number of unread notifications above the bell on the right 2018-12-06 16:18:02 -07:00
RoomDirectory.js eslint --fix src/ 2018-10-26 22:50:38 -05:00
RoomStatusBar.js eslint --fix src/ 2018-10-26 22:50:38 -05:00
RoomSubList.js Move pinned rooms check to the RoomListStore 2018-10-12 14:35:54 -06:00
RoomView.js Merge remote-tracking branch 'upstream/develop' into hs/upload-limits 2018-12-01 16:24:43 +00:00
ScrollPanel.js Make sure to proxy special prop ref 2018-03-27 13:04:26 +01:00
SearchBox.js eslint --fix src/ 2018-10-26 22:50:38 -05:00
TagPanel.js also show spinner on new CATCHUP state 2018-08-30 15:39:48 +02:00
TimelinePanel.js eslint --fix src/ 2018-10-26 22:50:38 -05:00
UploadBar.js Remove use of deprecated React.PropTypes 2017-12-26 14:03:18 +13:00
UserSettings.js Merge pull request #2169 from matrix-org/dbkr/e2e_backups 2018-11-21 18:37:43 +00:00
ViewSource.js eslint --fix src/ 2018-10-26 22:50:38 -05:00