(e)
| 2666 | fillTagsWithFilterLinks(tagsValueSpan, names); |
| 2667 | tagsValueSpan.setAttribute('title', text); |
| 2668 | tagsValueSpan.style.color = '#ccc'; |
| 2669 | } |
| 2670 | }; |
| 2671 | |
| 2672 | if (tagNames.length > 0) { |
| 2673 | applyDetailedTagsRow(tagNames); |
| 2674 | } else if (model.id) { |
| 2675 | window.electron.getModelTags(model.id).then((dbTags) => { |
| 2676 | const names = normalizeTagNames(dbTags); |
| 2677 | const mc = existingElement.querySelector('.metadata-container'); |
| 2678 | if (!mc) return; |
| 2679 | tagsItem = mc.querySelector('.tags-item'); |
| 2680 | applyDetailedTagsRow(names); |
| 2681 | }).catch(err => console.error('Error loading tags:', err)); |
| 2682 | } else { |
| 2683 | applyDetailedTagsRow([]); |
| 2684 | } |
| 2685 | if (typeof window.updateModelFilamentDisplay === 'function') { |
| 2686 | window.updateModelFilamentDisplay(existingElement); |
| 2687 | } |
| 2688 | } else if (isDetailedView || currentViewIsDetailed) { |
| 2689 | // Only warn if we're in detailed view but metadata container is missing |
| 2690 | // This shouldn't happen in detailed view, so it's a real issue |
no test coverage detected