fix stream dashlet

This commit is contained in:
Yuri Kuznetsov
2023-04-11 16:23:35 +03:00
parent 81d92870e9
commit 57d9dbc33e
2 changed files with 12 additions and 9 deletions
@@ -26,22 +26,19 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
define(
'views/dashlets/abstract/record-list',
['views/dashlets/abstract/base', 'search-manager'],
function (Dep, SearchManager) {
define('views/dashlets/abstract/record-list',
['views/dashlets/abstract/base', 'search-manager'], function (Dep, SearchManager) {
return Dep.extend({
scope: null,
listViewColumn: 'views/record/list',
listViewExpanded: 'views/record/list-expanded',
listView: null,
_template: '<div class="list-container">{{{list}}}</div>',
templateContent: '<div class="list-container">{{{list}}}</div>',
layoutType: 'expanded',
+9 -3
View File
@@ -26,16 +26,22 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
define('views/dashlets/stream', 'views/dashlets/abstract/base', function (Dep) {
define('views/dashlets/stream', ['views/dashlets/abstract/base'], function (Dep) {
return Dep.extend({
name: 'Stream',
_template: '<div class="list-container">{{{list}}}</div>',
templateContent: '<div class="list-container">{{{list}}}</div>',
actionRefresh: function () {
this.getView('list').showNewRecords();
let listView = this.getView('list');
if (!listView) {
return;
}
listView.showNewRecords();
},
afterRender: function () {