Commit 30b5d390 authored by Aron Carroll's avatar Aron Carroll

Move thread conditionals onto top level element

Rather than the thread-reply and thread-load-more elements having
one set of conditions on the parent and one on the child we now ensure
that the entire element is always shown/hidden.
parent 94a56244
...@@ -18,19 +18,17 @@ ...@@ -18,19 +18,17 @@
</article> </article>
<!-- Reply count --> <!-- Reply count -->
<div class="thread-reply" ng-show="vm.showReplyToggle(count('message'))"> <div class="thread-reply" ng-show="vm.showReplyToggle(count('message')) && (!threadFilter.active() || count('message') == count('match'))">
<a class="reply-count small" <a class="reply-count small"
href="" href=""
ng-if="!threadFilter.active() || count('message') == count('match')"
ng-pluralize count="count('message') - 1" ng-pluralize count="count('message') - 1"
when="{'0': '', one: '1 reply', other: '{} replies'}"></a> when="{'0': '', one: '1 reply', other: '{} replies'}"></a>
</div> </div>
<div class="thread-load-more" ng-show="threadFilter.active()"> <div class="thread-load-more" ng-show="vm.container.message.id && threadFilter.active()">
<a class="load-more small" <a class="load-more small"
href="" href=""
ng-click="threadFilter.active(false)" ng-click="threadFilter.active(false)"
ng-if="vm.container.message.id"
ng-pluralize count="count('message') - count('match')" ng-pluralize count="count('message') - count('match')"
when="{'0': '', when="{'0': '',
one: 'View one more in conversation', one: 'View one more in conversation',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment