mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 05:46:10 +01:00
updated boxicons to 2.1.4, update icon index + search also within term array, fixes #3233
This commit is contained in:
@@ -163,13 +163,17 @@ export default class NoteIconWidget extends NoteContextAwareWidget {
|
||||
|
||||
const {icons} = (await import('./icon_list.js')).default;
|
||||
|
||||
search = search?.trim()?.toLowerCase();
|
||||
|
||||
for (const icon of icons) {
|
||||
if (categoryId && icon.category_id !== categoryId) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (search && search.trim() && !icon.name.includes(search.trim().toLowerCase())) {
|
||||
continue;
|
||||
if (search) {
|
||||
if (!icon.name.includes(search) && !icon.term?.find(t => t.includes(search))) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
this.$iconList.append(
|
||||
|
||||
Reference in New Issue
Block a user