FEATURE: Display notification count in title for logged in users (#7184)

This replaces the 'contextual' counters for logged in users. We will still use the old method for anon users
This commit is contained in:
David Taylor
2019-03-18 12:59:47 +00:00
committed by GitHub
parent 0c01cb2cf3
commit 4e8c174ee5
6 changed files with 114 additions and 16 deletions
@@ -24,7 +24,7 @@ const DiscoveryTopicsListComponent = Ember.Component.extend(
@observes("incomingCount")
_updateTitle() {
Discourse.notifyTitle(this.get("incomingCount"));
Discourse.updateContextCount(this.get("incomingCount"));
},
saveScrollPosition() {
@@ -38,7 +38,7 @@ const DiscoveryTopicsListComponent = Ember.Component.extend(
actions: {
loadMore() {
Discourse.notifyTitle(0);
Discourse.updateContextCount(0);
this.get("model")
.loadMore()
.then(hasMoreResults => {