From 0cdbf6dcb8e8232933b61ab48a9db2f8332e1c08 Mon Sep 17 00:00:00 2001 From: Chaim Marcus Date: Tue, 24 Mar 2026 10:07:47 +0000 Subject: [PATCH] fix: dashlet view extend base View instead of DashletView, add getTitle method The EspoCRM DashletView wrapper creates the body view - the body should extend View (not DashletView) and must implement getTitle(). --- .../smart-assistant/views/dashlets/smart-assistant.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/files/client/custom/src/modules/smart-assistant/views/dashlets/smart-assistant.js b/files/client/custom/src/modules/smart-assistant/views/dashlets/smart-assistant.js index 0343471..70e75d8 100644 --- a/files/client/custom/src/modules/smart-assistant/views/dashlets/smart-assistant.js +++ b/files/client/custom/src/modules/smart-assistant/views/dashlets/smart-assistant.js @@ -1,9 +1,13 @@ -define('custom:modules/smart-assistant/views/dashlets/smart-assistant', ['views/dashlet'], function (DashletView) { +define('custom:modules/smart-assistant/views/dashlets/smart-assistant', ['view'], function (View) { - return DashletView.extend({ + return View.extend({ name: 'SmartAssistant', + getTitle: function () { + return this.translate('Smart Assistant', 'labels', 'SmartAssistant') || 'Smart Assistant'; + }, + templateContent: '' + '
' + '
' +