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

Function closePreview

preview.js:767–777  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

765
766 if (!placed.length) {
767 loading.innerHTML = `
768 <div style="color: #ff6b6b; text-align: center; padding: 20px; max-width: 500px;">
769 <p style="font-size: 18px; font-weight: 600; margin-bottom: 10px;">Could not load bundle preview</p>
770 <p style="font-size: 14px; line-height: 1.6;">No models in this bundle could be loaded for 3D preview.</p>
771 <button onclick="document.getElementById('preview-dialog').close()"
772 style="margin-top: 20px; padding: 10px 20px; background: rgba(255,255,255,0.1);
773 border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
774 color: white; cursor: pointer; font-size: 14px;">
775 Close
776 </button>
777 </div>
778 `;
779 return;
780 }

Callers 1

initPreviewModalFunction · 0.85

Calls 1

cleanupPreviewSceneFunction · 0.85

Tested by

no test coverage detected