FIX: Progress wasn't delegating actions properly

This commit is contained in:
Robin Ward 2016-05-21 11:23:45 -04:00
parent 1ed2723986
commit 03cd0afed3
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,11 @@ export default Ember.Component.extend({
postStream: Ember.computed.alias('topic.postStream'),
init() {
this._super();
(this.get('delegated') || []).forEach(m => this.set(m, m));
},
@computed('postStream.loaded', 'progressPosition', 'postStream.filteredPostsCount', 'postStream.highest_post_number')
streamPercentage(loaded, progressPosition, filteredPostsCount, highestPostNumber) {
if (!loaded) { return 0; }