UX: Add link to "Moderation History" to flagging interface

This commit is contained in:
Robin Ward 2017-12-08 15:48:13 -05:00
parent dcc63a8ead
commit b3bdc68639
2 changed files with 16 additions and 4 deletions

View File

@ -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');

View File

@ -109,8 +109,8 @@
</div>
{{/if}}
{{#if canAct}}
<div class='flagged-post-controls'>
<div class='flagged-post-controls'>
{{#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}}
</div>
{{/if}}
{{/if}}
{{d-button
icon="list"
label="admin.flags.moderation_history"
action=(action "showModerationHistory")}}
</div>
{{plugin-outlet
name="flagged-post-below-controls"
tagName=""