Delete unused files
This commit is contained in:
parent
75dad26fa5
commit
94764399ae
|
@ -36,10 +36,6 @@ export default Ember.Component.extend({
|
||||||
this.removeAfter(promise);
|
this.removeAfter(promise);
|
||||||
},
|
},
|
||||||
|
|
||||||
showAgreeFlagModal() {
|
|
||||||
this._spawnModal('admin-agree-flag', this.get('flaggedPost'), 'agree-flag-modal');
|
|
||||||
},
|
|
||||||
|
|
||||||
showDeleteFlagModal() {
|
showDeleteFlagModal() {
|
||||||
this._spawnModal('admin-delete-flag', this.get('flaggedPost'), 'delete-flag-modal');
|
this._spawnModal('admin-delete-flag', this.get('flaggedPost'), 'delete-flag-modal');
|
||||||
},
|
},
|
||||||
|
|
|
@ -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');
|
|
||||||
});
|
|
||||||
},
|
|
||||||
}
|
|
||||||
});
|
|
|
@ -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}}
|
|
|
@ -188,7 +188,7 @@
|
||||||
margin-bottom: 2em;
|
margin-bottom: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.delete-flag-modal, .agree-flag-modal {
|
.delete-flag-modal {
|
||||||
button {
|
button {
|
||||||
margin: 10px 0 10px 10px;
|
margin: 10px 0 10px 10px;
|
||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
|
|
|
@ -220,7 +220,7 @@
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.delete-flag-modal, .agree-flag-modal {
|
.delete-flag-modal {
|
||||||
.modal-inner-container {
|
.modal-inner-container {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,7 +169,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.delete-flag-modal, .agree-flag-modal {
|
.delete-flag-modal {
|
||||||
.modal-inner-container {
|
.modal-inner-container {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue