diff --git a/portal/templates/app/project.html b/portal/templates/app/project.html index 8a51b77..0382136 100644 --- a/portal/templates/app/project.html +++ b/portal/templates/app/project.html @@ -526,8 +526,8 @@ ${labelPill(label)} ${item.answer_count > 0 - ? `${item.answer_count}` - : ``} + ? `${item.answer_count}` + : ``} ${escHtml(buyerComment)} ${escHtml(sellerComment)} @@ -535,7 +535,7 @@ @@ -800,6 +800,13 @@ } // ---- Attach answer modal ---- + function showAttachModalById(reqId) { + const item = treeData.find(t => t.entry_id === reqId); + const d = item ? (item.data || {}) : {}; + const title = d.title || d.description || 'Untitled'; + showAttachModal(reqId, title); + } + function showAttachModal(reqId, reqTitle) { attachRequestId = reqId; document.getElementById('attachReqTitle').textContent = reqTitle;