mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 16:55:08 +00:00
FIX: Progress wasn't delegating actions properly
This commit is contained in:
parent
1ed2723986
commit
03cd0afed3
@ -10,6 +10,11 @@ export default Ember.Component.extend({
|
|||||||
|
|
||||||
postStream: Ember.computed.alias('topic.postStream'),
|
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')
|
@computed('postStream.loaded', 'progressPosition', 'postStream.filteredPostsCount', 'postStream.highest_post_number')
|
||||||
streamPercentage(loaded, progressPosition, filteredPostsCount, highestPostNumber) {
|
streamPercentage(loaded, progressPosition, filteredPostsCount, highestPostNumber) {
|
||||||
if (!loaded) { return 0; }
|
if (!loaded) { return 0; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user