When there are 2000 or more posts, only show the post number on the progress bar

This commit is contained in:
Neil Lalonde
2013-12-05 15:50:15 -05:00
parent 13da653f2b
commit 0fe5ecbb24
4 changed files with 12 additions and 3 deletions
@@ -293,6 +293,14 @@ Discourse.TopicController = Discourse.ObjectController.extend(Discourse.Selected
return false;
}.property('postStream.loaded', 'currentPost', 'postStream.filteredPostsCount'),
hugeNumberOfPosts: function() {
return (this.get('postStream.filteredPostsCount') >= 1000);
}.property('postStream.filteredPostsCount'),
progressPositionTitle: function() {
return I18n.t("topic.progress.position", {current: this.get('progressPosition'), total: this.get('highest_post_number')});
}.property('progressPosition', 'highest_post_number'),
deselectPost: function(post) {
this.get('selectedPosts').removeObject(post);