feat: show issue comments inline without toggle
This commit is contained in:
parent
f96171a345
commit
fac5063878
2 changed files with 5 additions and 26 deletions
|
|
@ -4307,21 +4307,11 @@ async function refreshIssuesList(win) {
|
|||
});
|
||||
actionsDiv.appendChild(editBtn);
|
||||
|
||||
// Comment toggle button
|
||||
const commentBtn = document.createElement('button');
|
||||
commentBtn.textContent = `\uD83D\uDCAC ${comments.length}`;
|
||||
commentBtn.className = 'issue-comment-btn';
|
||||
commentBtn.addEventListener('click', () => {
|
||||
const existing = row.querySelector('.issue-comments-section');
|
||||
if (existing) {
|
||||
existing.remove();
|
||||
} else {
|
||||
showCommentsSection(row, issue, win);
|
||||
}
|
||||
});
|
||||
actionsDiv.appendChild(commentBtn);
|
||||
|
||||
row.appendChild(actionsDiv);
|
||||
|
||||
// Comments section — always visible inline
|
||||
showCommentsSection(row, issue, win);
|
||||
|
||||
listDiv.appendChild(row);
|
||||
});
|
||||
} catch (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue