Rename confusing action name

This commit is contained in:
Robin Ward 2017-11-10 15:55:48 -05:00
parent bd8f8ea1f9
commit 75dad26fa5
3 changed files with 6 additions and 4 deletions

View File

@ -32,7 +32,7 @@ export default Ember.Component.extend({
},
actions: {
onRemoveAfterPromise(promise) {
removeAfter(promise) {
this.removeAfter(promise);
},

View File

@ -111,7 +111,9 @@
{{#if canAct}}
<div class='flagged-post-controls'>
{{admin-agree-flag-dropdown post=flaggedPost onRemoveAfterPromise=(action "onRemoveAfterPromise")}}
{{admin-agree-flag-dropdown
post=flaggedPost
removeAfter=(action "removeAfter") }}
{{#if flaggedPost.postHidden}}
{{d-button

View File

@ -75,12 +75,12 @@ export default DropdownSelectBox.extend({
actions: {
deleteSpammer() {
let spammerDetails = this.get("spammerDetails");
this.sendAction("onRemoveAfterPromise", spammerDetails.deleteUser());
this.attrs.removeAfter(spammerDetails.deleteUser());
},
perform(action) {
let flaggedPost = this.get("post");
this.sendAction("onRemoveAfterPromise", flaggedPost.agreeFlags(action));
this.attrs.removeAfter(flaggedPost.agreeFlags(action));
},
}
});