FIX: Progress wasn't updating after becoming visible
This commit is contained in:
parent
eaf4c5b99e
commit
9609680ba9
|
@ -20,6 +20,13 @@ export default Ember.Component.extend({
|
|||
return !userWantsToJump && showTimeline;
|
||||
},
|
||||
|
||||
@observes('hidden')
|
||||
visibilityChanged() {
|
||||
if (!this.get('hidden')) {
|
||||
this._updateBar();
|
||||
}
|
||||
},
|
||||
|
||||
keyboardTrigger(kbdEvent) {
|
||||
if (kbdEvent.type === 'jump') {
|
||||
this.set('expanded', true);
|
||||
|
@ -46,7 +53,6 @@ export default Ember.Component.extend({
|
|||
return progressPosition >= filteredPostsCount || progressPosition >= highestPostNumber;
|
||||
},
|
||||
|
||||
|
||||
@computed('postStream.loaded', 'topic.currentPost', 'postStream.filteredPostsCount')
|
||||
hideProgress(loaded, currentPost, filteredPostsCount) {
|
||||
return (!loaded) || (!currentPost) || (filteredPostsCount < 2);
|
||||
|
|
Loading…
Reference in New Issue