mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
Add tests to flagged topics
This commit is contained in:
@ -4,6 +4,12 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
||||
removeAfter: null,
|
||||
|
||||
actions: {
|
||||
deleteSpammer(user) {
|
||||
return this.removeAfter(user.deleteAsSpammer()).then(() => {
|
||||
this.send('closeModal');
|
||||
});
|
||||
},
|
||||
|
||||
deletePostDeferFlag() {
|
||||
let flaggedPost = this.get('model');
|
||||
this.removeAfter(flaggedPost.deferFlags(true)).then(() => {
|
||||
|
Reference in New Issue
Block a user