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

@ -27,11 +27,11 @@ export default Controller.extend(bufferedProperty("siteText"), {
revertChanges() {
this.set("saved", false);
bootbox.confirm(I18n.t("admin.site_text.revert_confirm"), result => {
bootbox.confirm(I18n.t("admin.site_text.revert_confirm"), (result) => {
if (result) {
this.siteText
.revert()
.then(props => {
.then((props) => {
const buffered = this.buffered;
buffered.setProperties(props);
this.commitBuffer();
@ -39,6 +39,6 @@ export default Controller.extend(bufferedProperty("siteText"), {
.catch(popupAjaxError);
}
});
}
}
},
},
});