mirror of
https://github.com/flarum/core.git
synced 2025-08-05 07:57:46 +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:
@@ -1,9 +1,7 @@
|
|||||||
{{#each item in listItems}}
|
{{#each item in listItems}}
|
||||||
{{#unless item.isHiddenInList}}
|
{{#if item.isListItem}}
|
||||||
{{#if item.isListItem}}
|
{{view item}}
|
||||||
{{view item}}
|
{{else}}
|
||||||
{{else}}
|
<li class="{{item.listItemClass}}">{{view item}}</li>
|
||||||
<li class="{{item.listItemClass}}">{{view item}}</li>
|
{{/if}}
|
||||||
{{/if}}
|
|
||||||
{{/unless}}
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
Reference in New Issue
Block a user