diff --git a/app/annotator.html b/app/annotator.html index a9122cf74..eee172a39 100644 --- a/app/annotator.html +++ b/app/annotator.html @@ -127,6 +127,7 @@
Image + & annotations diff --git a/app/assets/annotator.mjs b/app/assets/annotator.mjs index 02076a2a2..e77630c01 100644 --- a/app/assets/annotator.mjs +++ b/app/assets/annotator.mjs @@ -692,6 +692,11 @@ createApp({ return ret }, + getAnnotationsCount() { + // unused although handy function for user feedback. + // But it's called/drawn too often by Vue since it's not reactive. + return (this?.anno?.getAnnotations() || []).length + }, getTextTargetFromSign(sign) { // let word = sign.closest('.tei-w') let word = sign.closest('[data-tei-id]')