fix list with category use icon in header

This commit is contained in:
Yurii
2026-02-02 18:37:47 +02:00
parent 43e016eff8
commit 50ea605c06
+10 -5
View File
@@ -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) {