mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Add link to "Moderation History" to flagging interface
This commit is contained in:
parent
dcc63a8ead
commit
b3bdc68639
@ -50,6 +50,13 @@ export default Ember.Component.extend({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
showModerationHistory() {
|
||||||
|
this.get('adminTools').showModerationHistory({
|
||||||
|
filter: 'post',
|
||||||
|
post_id: this.get('flaggedPost.id')
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
showSuspendModal() {
|
showSuspendModal() {
|
||||||
let post = this.get('flaggedPost');
|
let post = this.get('flaggedPost');
|
||||||
let user = post.get('user');
|
let user = post.get('user');
|
||||||
|
@ -109,8 +109,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if canAct}}
|
<div class='flagged-post-controls'>
|
||||||
<div class='flagged-post-controls'>
|
{{#if canAct}}
|
||||||
{{admin-agree-flag-dropdown
|
{{admin-agree-flag-dropdown
|
||||||
post=flaggedPost
|
post=flaggedPost
|
||||||
removeAfter=(action "removeAfter") }}
|
removeAfter=(action "removeAfter") }}
|
||||||
@ -148,8 +148,13 @@
|
|||||||
title="admin.flags.suspend_user_title"
|
title="admin.flags.suspend_user_title"
|
||||||
action=(action "showSuspendModal")}}
|
action=(action "showSuspendModal")}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
</div>
|
{{/if}}
|
||||||
{{/if}}
|
|
||||||
|
{{d-button
|
||||||
|
icon="list"
|
||||||
|
label="admin.flags.moderation_history"
|
||||||
|
action=(action "showModerationHistory")}}
|
||||||
|
</div>
|
||||||
{{plugin-outlet
|
{{plugin-outlet
|
||||||
name="flagged-post-below-controls"
|
name="flagged-post-below-controls"
|
||||||
tagName=""
|
tagName=""
|
||||||
|
Loading…
Reference in New Issue
Block a user