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

@ -36,10 +36,6 @@ export default Ember.Component.extend({
this.removeAfter(promise);
},
showAgreeFlagModal() {
this._spawnModal('admin-agree-flag', this.get('flaggedPost'), 'agree-flag-modal');
},
showDeleteFlagModal() {
this._spawnModal('admin-delete-flag', this.get('flaggedPost'), 'delete-flag-modal');
},

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');
});
},
}
});

View File

@ -1,35 +0,0 @@
{{#d-modal-body title="admin.flags.agree_flag_modal_title"}}
{{#if model.user_deleted}}
{{d-button
title="admin.flags.agree_flag_restore_post_title"
class="confirm-agree-restore"
action=(action "perform" "restore")
icon="eye"
label="admin.flags.agree_flag_restore_post"}}
{{else}}
{{#unless model.postHidden}}
{{d-button
title="admin.flags.agree_flag_hide_post_title"
action=(action "perform" "hide")
class="confirm-agree-hide"
icon="eye-slash"
label="admin.flags.agree_flag_hide_post"}}
{{/unless}}
{{/if}}
{{d-button
title="admin.flags.agree_flag_title"
action=(action "perform" "keep")
class="confirm-agree-keep"
icon="thumbs-o-up"
label="admin.flags.agree_flag"}}
{{#if canDeleteSpammer}}
{{d-button
title="admin.flags.delete_spammer_title"
action="deleteSpammer"
class="btn-danger delete-spammer"
icon="exclamation-triangle"
label="admin.flags.delete_spammer"}}
{{/if}}
{{/d-modal-body}}

View File

@ -188,7 +188,7 @@
margin-bottom: 2em;
}
.delete-flag-modal, .agree-flag-modal {
.delete-flag-modal {
button {
margin: 10px 0 10px 10px;
padding: 10px 15px;

View File

@ -220,7 +220,7 @@
margin-bottom: 10px;
}
.delete-flag-modal, .agree-flag-modal {
.delete-flag-modal {
.modal-inner-container {
width: 400px;
}

View File

@ -169,7 +169,7 @@
}
}
.delete-flag-modal, .agree-flag-modal {
.delete-flag-modal {
.modal-inner-container {
width: 300px;
}