Add tests to flagged topics

This commit is contained in:
Robin Ward
2017-09-11 10:31:38 -04:00
parent 5e69217793
commit 1af4acbb3d
17 changed files with 315 additions and 89 deletions

View File

@ -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(() => {