mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 10:52:45 +08:00
DEV: Add reviewable id data attribute and plugin outlet for reviewable actions (#25311)
This commit is contained in:
parent
f5516b8088
commit
51e02e0d31
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user