When clicked, it pops up a modal showing a history of moderation actions taken on the post or topic.
21 lines
555 B
JavaScript
21 lines
555 B
JavaScript
import MountWidget from 'discourse/components/mount-widget';
|
|
import optionalService from 'discourse/lib/optional-service';
|
|
|
|
export default MountWidget.extend({
|
|
classNames: 'topic-admin-menu-button-container',
|
|
tagName: 'span',
|
|
widget: "topic-admin-menu-button",
|
|
adminTools: optionalService(),
|
|
|
|
buildArgs() {
|
|
return this.getProperties('topic', 'fixed', 'openUpwards', 'rightSide');
|
|
},
|
|
|
|
showModerationHistory() {
|
|
this.get('adminTools').showModerationHistory({
|
|
filter: 'topic',
|
|
topic_id: this.get('topic.id')
|
|
});
|
|
}
|
|
});
|