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