fix add dashlet
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user