diff --git a/app/assets/javascripts/admin/components/flagged-post.js.es6 b/app/assets/javascripts/admin/components/flagged-post.js.es6 index c8583199b01..0754952a011 100644 --- a/app/assets/javascripts/admin/components/flagged-post.js.es6 +++ b/app/assets/javascripts/admin/components/flagged-post.js.es6 @@ -50,6 +50,13 @@ export default Ember.Component.extend({ }); }, + showModerationHistory() { + this.get('adminTools').showModerationHistory({ + filter: 'post', + post_id: this.get('flaggedPost.id') + }); + }, + showSuspendModal() { let post = this.get('flaggedPost'); let user = post.get('user'); diff --git a/app/assets/javascripts/admin/templates/components/flagged-post.hbs b/app/assets/javascripts/admin/templates/components/flagged-post.hbs index 29e72131891..2b7f03940fc 100644 --- a/app/assets/javascripts/admin/templates/components/flagged-post.hbs +++ b/app/assets/javascripts/admin/templates/components/flagged-post.hbs @@ -109,8 +109,8 @@ {{/if}} - {{#if canAct}} -
+
+ {{#if canAct}} {{admin-agree-flag-dropdown post=flaggedPost removeAfter=(action "removeAfter") }} @@ -148,8 +148,13 @@ title="admin.flags.suspend_user_title" action=(action "showSuspendModal")}} {{/unless}} -
- {{/if}} + {{/if}} + + {{d-button + icon="list" + label="admin.flags.moderation_history" + action=(action "showModerationHistory")}} +
{{plugin-outlet name="flagged-post-below-controls" tagName=""