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
@@ -21,7 +21,7 @@ export default Controller.extend({
createField() {
const f = this.store.createRecord("user-field", {
field_type: "text",
position: MAX_FIELDS
position: MAX_FIELDS,
});
this.model.pushObject(f);
},
@@ -53,12 +53,12 @@ export default Controller.extend({
// Only confirm if we already been saved
if (f.get("id")) {
bootbox.confirm(I18n.t("admin.user_fields.delete_confirm"), function(
bootbox.confirm(I18n.t("admin.user_fields.delete_confirm"), function (
result
) {
if (result) {
f.destroyRecord()
.then(function() {
.then(function () {
model.removeObject(f);
})
.catch(popupAjaxError);
@@ -67,6 +67,6 @@ export default Controller.extend({
} else {
model.removeObject(f);
}
}
}
},
},
});