New 'topic:current-post-changed' application event

This commit is contained in:
Régis Hanol 2017-08-07 15:56:08 +02:00
parent 125cc356f3
commit 4c306f9f49
1 changed files with 2 additions and 0 deletions

View File

@ -230,6 +230,8 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
this.send('postChangedRoute', postNumber);
this._progressIndex = topic.get('postStream').progressIndexOfPost(post);
this.appEvents.trigger('topic:current-post-changed', { post });
},
currentPostScrolled(event) {