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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user