DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592)

This commit is contained in:
Joffrey JAFFEUX
2019-05-27 10:15:39 +02:00
committed by GitHub
parent 170c66c190
commit bfea922167
389 changed files with 2448 additions and 2460 deletions

View File

@ -19,20 +19,20 @@ export default Ember.Controller.extend(PenaltyController, {
actions: {
suspend() {
if (this.get("submitDisabled")) {
if (this.submitDisabled) {
return;
}
this.set("suspending", true);
this.penalize(() => {
return this.get("user").suspend({
suspend_until: this.get("suspendUntil"),
reason: this.get("reason"),
message: this.get("message"),
post_id: this.get("postId"),
post_action: this.get("postAction"),
post_edit: this.get("postEdit")
return this.user.suspend({
suspend_until: this.suspendUntil,
reason: this.reason,
message: this.message,
post_id: this.postId,
post_action: this.postAction,
post_edit: this.postEdit
});
}).finally(() => this.set("suspending", false));
}