+
@@ -693,6 +700,13 @@
else toast('Delete failed', r.error, 'error');
}
+ function openInEditor(assetId, e) {
+ e.stopPropagation();
+ const projectId = state.currentProjectId;
+ if (!projectId) { toast('Select a project first', '', 'warning'); return; }
+ location.href = 'editor.html?project=' + projectId + '&asset=' + assetId;
+ }
+
// ── Search ────────────────────────────────
function setupSearch() {
const inp = document.getElementById('searchInput');