EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
fix list with category use icon in header
Yurii50ea605c06d1
diff --git a/client/src/views/list-with-categories.js b/client/src/views/list-with-categories.jsindex ad7819041f..d2d980cdf8 100644--- a/client/src/views/list-with-categories.js+++ b/client/src/views/list-with-categories.js@@ -777,13 +777,18 @@ class ListWithCategories extends ListView {rootUrl += `/list/primaryFilter=${filterPart}`;}- const root = document.createElement('a');- root.href = rootUrl;- root.textContent = this.translate(this.scope, 'scopeNamesPlural');- root.dataset.action = 'openCategory';- root.classList.add('action');+ const root = document.createElement('span');root.style.userSelect = 'none';+ const a = document.createElement('a');+ a.href = rootUrl;+ a.textContent = this.translate(this.scope, 'scopeNamesPlural');+ a.dataset.action = 'openCategory';+ a.classList.add('action');+ a.style.userSelect = 'none';++ root.append(a);+const iconHtml = this.getHeaderIconHtml();if (iconHtml) {