mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:52:44 +08:00
Rename confusing action name
This commit is contained in:
parent
bd8f8ea1f9
commit
75dad26fa5
|
@ -32,7 +32,7 @@ export default Ember.Component.extend({
|
|||
},
|
||||
|
||||
actions: {
|
||||
onRemoveAfterPromise(promise) {
|
||||
removeAfter(promise) {
|
||||
this.removeAfter(promise);
|
||||
},
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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));
|
||||
},
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user