diff --git a/app/assets/javascripts/discourse/components/topic-progress.js.es6 b/app/assets/javascripts/discourse/components/topic-progress.js.es6 index 51b6aeb54f6..6e0315e319c 100644 --- a/app/assets/javascripts/discourse/components/topic-progress.js.es6 +++ b/app/assets/javascripts/discourse/components/topic-progress.js.es6 @@ -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);