ui
This commit is contained in:
@@ -99,6 +99,12 @@
|
||||
function renderAnnotationsList(annotations) {
|
||||
const listContainer = document.getElementById('annotations-list');
|
||||
const noAnnotationsMsg = document.getElementById('no-annotations-msg');
|
||||
const annotationCountEl = document.getElementById('annotation-count');
|
||||
|
||||
// Update count immediately
|
||||
if (annotationCountEl) {
|
||||
annotationCountEl.textContent = annotations.length;
|
||||
}
|
||||
|
||||
if (annotations.length === 0) {
|
||||
noAnnotationsMsg.style.display = 'block';
|
||||
@@ -196,9 +202,6 @@
|
||||
|
||||
listContainer.appendChild(item);
|
||||
});
|
||||
|
||||
// Update annotation count
|
||||
document.getElementById('annotation-count').textContent = annotations.length;
|
||||
}
|
||||
|
||||
function viewAnnotation(annotation) {
|
||||
|
||||
Reference in New Issue
Block a user