Merge pull request #2452 from techAPJ/patch-glyph
remove computed property for progress bar glyph
This commit is contained in:
commit
8f2d1f7020
|
@ -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; }
|
||||||
|
|
|
@ -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'> </div>
|
<div class='bg'> </div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in New Issue