1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Remove unneeded check in item-list template

If the `isHiddenInList` property is changed to true (e.g. via a
computed property), then that view is removed, and its computed
properties are unhooks — so the `isHiddenInList` property won’t update
and the view can’t be shown again. Items should be hidden via CSS
instead.
This commit is contained in:
Toby Zerner
2015-03-28 11:45:33 +10:30
parent db7ba85b66
commit 7f2a9beb5d

View File

@@ -1,9 +1,7 @@
{{#each item in listItems}}
{{#unless item.isHiddenInList}}
{{#if item.isListItem}}
{{view item}}
{{else}}
<li class="{{item.listItemClass}}">{{view item}}</li>
{{/if}}
{{/unless}}
{{#if item.isListItem}}
{{view item}}
{{else}}
<li class="{{item.listItemClass}}">{{view item}}</li>
{{/if}}
{{/each}}