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

@ -84,7 +84,7 @@ export default Ember.Controller.extend({
this.set("saved", false);
const url = this.get("model.payload_url");
const domain = extractDomainFromUrl(url);
const model = this.get("model");
const model = this.model;
const isNew = model.get("isNew");
const saveWebHook = () => {
@ -92,7 +92,7 @@ export default Ember.Controller.extend({
.save()
.then(() => {
this.set("saved", true);
this.get("adminWebHooks")
this.adminWebHooks
.get("model")
.addObject(model);
@ -131,11 +131,11 @@ export default Ember.Controller.extend({
I18n.t("yes_value"),
result => {
if (result) {
const model = this.get("model");
const model = this.model;
model
.destroyRecord()
.then(() => {
this.get("adminWebHooks")
this.adminWebHooks
.get("model")
.removeObject(model);
this.transitionToRoute("adminWebHooks");