From 461034f9cc5bddf230608ec59eaecc055212cb48 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 29 Mar 2022 17:44:24 +0300 Subject: [PATCH] roles exportable importable --- application/Espo/Resources/metadata/scopes/PortalRole.json | 4 +++- application/Espo/Resources/metadata/scopes/Role.json | 4 +++- client/src/views/portal-role/record/list.js | 4 +--- client/src/views/role/record/list.js | 6 ++---- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/application/Espo/Resources/metadata/scopes/PortalRole.json b/application/Espo/Resources/metadata/scopes/PortalRole.json index a5280171da..b5867b580e 100644 --- a/application/Espo/Resources/metadata/scopes/PortalRole.json +++ b/application/Espo/Resources/metadata/scopes/PortalRole.json @@ -3,5 +3,7 @@ "layouts": false, "tab": false, "acl": false, - "customizable": false + "customizable": false, + "importable": true, + "exportFormatList": ["csv"] } diff --git a/application/Espo/Resources/metadata/scopes/Role.json b/application/Espo/Resources/metadata/scopes/Role.json index a5280171da..b5867b580e 100644 --- a/application/Espo/Resources/metadata/scopes/Role.json +++ b/application/Espo/Resources/metadata/scopes/Role.json @@ -3,5 +3,7 @@ "layouts": false, "tab": false, "acl": false, - "customizable": false + "customizable": false, + "importable": true, + "exportFormatList": ["csv"] } diff --git a/client/src/views/portal-role/record/list.js b/client/src/views/portal-role/record/list.js index 4617bc824a..52410a1d6a 100644 --- a/client/src/views/portal-role/record/list.js +++ b/client/src/views/portal-role/record/list.js @@ -26,12 +26,10 @@ * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ -Espo.define('views/portal-role/record/list', 'views/role/record/list', function (Dep) { +define('views/portal-role/record/list', 'views/role/record/list', function (Dep) { return Dep.extend({ - }); }); - diff --git a/client/src/views/role/record/list.js b/client/src/views/role/record/list.js index 7d74cebc9e..08f74f41cb 100644 --- a/client/src/views/role/record/list.js +++ b/client/src/views/role/record/list.js @@ -26,7 +26,7 @@ * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ -Espo.define('views/role/record/list', 'views/record/list', function (Dep) { +define('views/role/record/list', 'views/record/list', function (Dep) { return Dep.extend({ @@ -34,11 +34,9 @@ Espo.define('views/role/record/list', 'views/record/list', function (Dep) { quickEditDisabled: true, - massActionList: ['remove'], + massActionList: ['remove', 'export'], checkAllResultDisabled: true }); - }); -