feat(#50): document & annotation comments #57

Merged
marcel merged 10 commits from feature/50-document-comments into main 2026-03-24 12:57:53 +01:00
Showing only changes of commit fd03e56c85 - Show all commits

View File

@@ -452,18 +452,20 @@ function zoomOut() {
{/if} {/if}
</div> </div>
{#if activeAnnotationId} {#key activeAnnotationId}
<AnnotationCommentPanel {#if activeAnnotationId}
documentId={documentId} <AnnotationCommentPanel
annotationId={activeAnnotationId} documentId={documentId}
canComment={canComment ?? false} annotationId={activeAnnotationId}
currentUserId={currentUserId ?? null} canComment={canComment ?? false}
canAdmin={canAdmin ?? false} currentUserId={currentUserId ?? null}
onClose={() => (activeAnnotationId = null)} canAdmin={canAdmin ?? false}
onCountChange={(count) => { onClose={() => (activeAnnotationId = null)}
if (activeAnnotationId) commentCounts.set(activeAnnotationId, count); onCountChange={(count) => {
}} if (activeAnnotationId) commentCounts.set(activeAnnotationId, count);
/> }}
{/if} />
{/if}
{/key}
</div> </div>
{/if} {/if}