DEV: Add reviewable id data attribute and plugin outlet for reviewable actions (#25311)

This commit is contained in:
Anatolii Prybylovych 2024-05-27 16:15:18 +03:00 committed by GitHub
parent f5516b8088
commit 51e02e0d31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -393,7 +393,7 @@
{{#if this.model.pending_posts}}
<div class="pending-posts">
{{#each this.model.pending_posts as |pending|}}
<div class="reviewable-item">
<div class="reviewable-item" data-reviewable-id={{pending.id}}>
<div class="reviewable-meta-data">
<span class="reviewable-type">
{{i18n "review.awaiting_approval"}}
@ -418,6 +418,10 @@
</div>
</div>
<div class="reviewable-actions">
<PluginOutlet
@name="topic-additional-reviewable-actions"
@outletArgs={{hash pending=pending}}
/>
<DButton
@label="review.delete"
@icon="trash-alt"