mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 06:59:42 +08: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:
parent
5ca3b5e0f6
commit
3c3f8242e2
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user