DEV: apply new coding standards (#10592)

This commit is contained in:
Joffrey JAFFEUX
2020-09-04 13:42:47 +02:00
committed by GitHub
parent 80dfaeb0d2
commit 52672b9eab
1473 changed files with 9386 additions and 9958 deletions

View File

@ -14,14 +14,14 @@ export default Controller.extend(bufferedProperty("model"), {
save() {
this.setProperties({
isSaving: true,
saved: false
saved: false,
});
ajax("robots.json", {
type: "PUT",
data: { robots_txt: this.buffered.get("robots_txt") }
data: { robots_txt: this.buffered.get("robots_txt") },
})
.then(data => {
.then((data) => {
this.commitBuffer();
this.set("saved", true);
this.set("model.overridden", data.overridden);
@ -32,16 +32,16 @@ export default Controller.extend(bufferedProperty("model"), {
reset() {
this.setProperties({
isSaving: true,
saved: false
saved: false,
});
ajax("robots.json", { type: "DELETE" })
.then(data => {
.then((data) => {
this.buffered.set("robots_txt", data.robots_txt);
this.commitBuffer();
this.set("saved", true);
this.set("model.overridden", false);
})
.finally(() => this.set("isSaving", false));
}
}
},
},
});