From 879da4dca224da378625565a2aeea5ffc117df60 Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 10 Apr 2018 14:02:36 +0300 Subject: [PATCH] fix calls row actions --- .../views/call/record/row-actions/dashlet.js | 20 +++++++++---------- .../views/call/record/row-actions/default.js | 20 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/client/modules/crm/src/views/call/record/row-actions/dashlet.js b/client/modules/crm/src/views/call/record/row-actions/dashlet.js index e1a4aa98c4..4f2005c50c 100644 --- a/client/modules/crm/src/views/call/record/row-actions/dashlet.js +++ b/client/modules/crm/src/views/call/record/row-actions/dashlet.js @@ -48,16 +48,16 @@ Espo.define('crm:views/call/record/row-actions/dashlet', ['views/record/row-acti id: this.model.id } }); - if (this.options.acl.delete) { - actionList.push({ - action: 'quickRemove', - label: 'Remove', - data: { - id: this.model.id, - scope: this.model.name - } - }); - } + } + if (this.options.acl.delete) { + actionList.push({ + action: 'quickRemove', + label: 'Remove', + data: { + id: this.model.id, + scope: this.model.name + } + }); } return actionList; diff --git a/client/modules/crm/src/views/call/record/row-actions/default.js b/client/modules/crm/src/views/call/record/row-actions/default.js index a119bb830f..87ad3c062f 100644 --- a/client/modules/crm/src/views/call/record/row-actions/default.js +++ b/client/modules/crm/src/views/call/record/row-actions/default.js @@ -48,16 +48,16 @@ Espo.define('crm:views/call/record/row-actions/default', ['views/record/row-acti id: this.model.id } }); - if (this.options.acl.delete) { - actionList.push({ - action: 'quickRemove', - label: 'Remove', - data: { - id: this.model.id, - scope: this.model.name - } - }); - } + } + if (this.options.acl.delete) { + actionList.push({ + action: 'quickRemove', + label: 'Remove', + data: { + id: this.model.id, + scope: this.model.name + } + }); } return actionList;