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

@ -48,7 +48,7 @@ export default DropdownSelectBox.extend({
},
changeToNormal() {
this.get("updateNotificationLevel")("normal")
this.updateNotificationLevel("normal")
.then(() => {
this.set("user.ignored", false);
this.set("user.muted", false);
@ -57,7 +57,7 @@ export default DropdownSelectBox.extend({
.catch(popupAjaxError);
},
changeToMuted() {
this.get("updateNotificationLevel")("mute")
this.updateNotificationLevel("mute")
.then(() => {
this.set("user.ignored", false);
this.set("user.muted", true);
@ -67,7 +67,7 @@ export default DropdownSelectBox.extend({
},
changeToIgnored() {
const controller = showModal("ignore-duration", {
model: this.get("user")
model: this.user
});
controller.setProperties({
onSuccess: () => {