Ghost/ghost/admin/app/components/posts-list/list.hbs
Steve Larson fe31ee34e8
Revert "Improved performance in Admin Posts view (#20503)" (#20514)
ref https://linear.app/tryghost/issue/ONC-111

This reverts commit 3d9d552271.

This commit broke bulk post actions which we do not have tests for, so
we will need to address that as well as add tests.
2024-07-02 14:27:44 +00:00

21 lines
637 B
Handlebars

<MultiList::List @model={{@list}} class="posts-list gh-list {{unless @model "no-posts"}} feature-memberAttribution" as |list| >
{{#each @model as |post|}}
<list.item @id={{post.id}} class="gh-posts-list-item-group">
<PostsList::ListItem
@post={{post}}
data-test-post-id={{post.id}}
/>
</list.item>
{{else}}
{{yield}}
{{/each}}
</MultiList::List>
{{!-- The currently selected item or items are passed to the context menu --}}
<GhContextMenu
@name="context-menu"
as |menu|
>
<PostsList::ContextMenu @menu={{menu}} />
</GhContextMenu>