From e76f849bdece0b6ec0e22fe0faac44f23e4fe3be Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 6 Sep 2022 19:54:07 +0300 Subject: [PATCH] cs fix --- client/src/views/record/list.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/client/src/views/record/list.js b/client/src/views/record/list.js index 69d0cbdfcf..d89c96adf5 100644 --- a/client/src/views/record/list.js +++ b/client/src/views/record/list.js @@ -3026,18 +3026,18 @@ function (Dep, MassActionHelper, ExportHelper, RecordModal) { actionQuickRemove: function (data) { data = data || {}; - var id = data.id; + let id = data.id; if (!id) { return; } - var model = this.collection.get(id); + let model = this.collection.get(id); if (!this.getAcl().checkModel(model, 'delete')) { - this.notify('Access denied', 'error'); + Espo.Ui.error(this.translate('Access denied')); - return false; + return; } this.confirm({ @@ -3049,9 +3049,10 @@ function (Dep, MassActionHelper, ExportHelper, RecordModal) { this.notify('Removing...'); - model.destroy({wait: true, fromList: true}) + model + .destroy({wait: true, fromList: true}) .then(() => { - this.notify('Removed', 'success'); + Espo.Ui.success(this.translate('Removed')); this.removeRecordFromList(id); })