diff --git a/frontend/client/src/views/dashboard.js b/frontend/client/src/views/dashboard.js index 68588f6eab..05cbaec82e 100644 --- a/frontend/client/src/views/dashboard.js +++ b/frontend/client/src/views/dashboard.js @@ -154,6 +154,7 @@ Espo.define('Views.Dashboard', 'View', function (Dep) { this.getView('dashlets').createView('dashlet-' + id, 'Dashlet', { label: name, + name: name, id: id, el: '#dashlet-container-' + id }, function (view) { diff --git a/frontend/client/src/views/dashlet.js b/frontend/client/src/views/dashlet.js index 93f0d489a8..5fa99f3337 100644 --- a/frontend/client/src/views/dashlet.js +++ b/frontend/client/src/views/dashlet.js @@ -56,6 +56,7 @@ Espo.define('Views.Dashlet', 'View', function (Dep) { var bodySelector = '#dashlet-' + this.id + ' .dashlet-body'; var module = this.getMetadata().get('dashlets.' + this.name + '.module'); + this.createView('body', Espo.Utils.composeClassName(module, this.name, 'Dashlets'), {el: bodySelector, id: this.id}); },