remove computed property for progress bar glyph

This commit is contained in:
Arpit Jalan 2014-06-18 23:57:47 +05:30
parent 4c237f5bf5
commit 79f19b6cca
2 changed files with 1 additions and 5 deletions

View File

@ -40,10 +40,6 @@ export default Ember.ObjectController.extend({
Discourse.URL.routeTo(url); Discourse.URL.routeTo(url);
}, },
chevronClass: function() {
return this.get('expanded') ? '' : 'fa-sort';
}.property('expanded'),
streamPercentage: function() { streamPercentage: function() {
if (!this.get('postStream.loaded')) { return 0; } if (!this.get('postStream.loaded')) { return 0; }
if (this.get('postStream.highest_post_number') === 0) { return 0; } if (this.get('postStream.highest_post_number') === 0) { return 0; }

View File

@ -17,6 +17,6 @@
<div class='nums'> <div class='nums'>
<h4>{{progressPosition}}</h4><span {{bind-attr class="hugeNumberOfPosts:hidden"}}> <span>{{i18n of_value}}</span> <h4>{{postStream.filteredPostsCount}}</h4></span> <h4>{{progressPosition}}</h4><span {{bind-attr class="hugeNumberOfPosts:hidden"}}> <span>{{i18n of_value}}</span> <h4>{{postStream.filteredPostsCount}}</h4></span>
</div> </div>
<i {{bind-attr class=":fa chevronClass"}}></i> <i {{bind-attr class=":fa expanded::fa-sort"}}></i>
<div class='bg'>&nbsp;</div> <div class='bg'>&nbsp;</div>
</nav> </nav>