MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / handler

Function handler

renderer.js:2668–2687  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

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

Callers 2

startHttpServerFunction · 0.85
main.jsFile · 0.85

Calls 3

getCurrentModelFilePathFunction · 0.85
autoSaveModelFunction · 0.85
showHtmlContextMenuFunction · 0.85

Tested by

no test coverage detected