DEV: prettier 2.2.1 (#11862)

This commit is contained in:
Joffrey JAFFEUX
2021-01-27 12:39:20 +01:00
committed by GitHub
parent 7be556fc19
commit c6a1042950
117 changed files with 2495 additions and 2433 deletions

View File

@ -53,17 +53,18 @@ 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 (
result
) {
if (result) {
f.destroyRecord()
.then(function () {
model.removeObject(f);
})
.catch(popupAjaxError);
bootbox.confirm(
I18n.t("admin.user_fields.delete_confirm"),
function (result) {
if (result) {
f.destroyRecord()
.then(function () {
model.removeObject(f);
})
.catch(popupAjaxError);
}
}
});
);
} else {
model.removeObject(f);
}