2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 09:10:25 +08:00

Delete unused files

This commit is contained in:
Robin Ward 2017-11-10 16:02:31 -05:00
parent 75dad26fa5
commit 94764399ae
6 changed files with 3 additions and 63 deletions

View file

@ -1,21 +0,0 @@
import ModalFunctionality from 'discourse/mixins/modal-functionality';
import DeleteSpammerModal from 'admin/mixins/delete-spammer-modal';
export default Ember.Controller.extend(ModalFunctionality, DeleteSpammerModal, {
removeAfter: null,
actions: {
agreeDeleteSpammer(user) {
return this.removeAfter(user.deleteAsSpammer()).then(() => {
this.send('closeModal');
});
},
perform(action) {
let flaggedPost = this.get('model');
return this.removeAfter(flaggedPost.agreeFlags(action)).then(() => {
this.send('closeModal');
});
},
}
});