From 763a77d4f54130cfaf6c980202ddacd04b0af279 Mon Sep 17 00:00:00 2001 From: David Ascanio Date: Thu, 4 Jun 2026 00:10:30 -0300 Subject: [PATCH] fix bug historial --- app/components/PublicationDetail.vue | 3 ++- app/components/entrelineas/EntrelineaDetail.vue | 3 ++- app/pages/historial.vue | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/components/PublicationDetail.vue b/app/components/PublicationDetail.vue index 0abf901..32634b2 100644 --- a/app/components/PublicationDetail.vue +++ b/app/components/PublicationDetail.vue @@ -66,6 +66,7 @@ const props = defineProps<{ selectedHit?: TypesenseParagraphHit | null selectedMatchingHits?: TypesenseParagraphHit[] | null accentColor?: 'green' | 'blue' + noTrackVisit?: boolean }>() const emits = defineEmits(['close']) @@ -103,7 +104,7 @@ watch( () => [props.collection, props.document?.id] as const, ([collection, id]) => { if (!collection || !id || !props.document) return - history.visit(collection, toSearchHit(props.document)) + if (!props.noTrackVisit) history.visit(collection, toSearchHit(props.document)) }, { immediate: true } ) diff --git a/app/components/entrelineas/EntrelineaDetail.vue b/app/components/entrelineas/EntrelineaDetail.vue index caf2190..10dc774 100644 --- a/app/components/entrelineas/EntrelineaDetail.vue +++ b/app/components/entrelineas/EntrelineaDetail.vue @@ -31,6 +31,7 @@ const props = defineProps<{ document: EntrelineaDoc collection?: string highlightedText?: string | null + noTrackVisit?: boolean }>() const emits = defineEmits<{ close: [] }>() @@ -104,7 +105,7 @@ watch( () => [props.collection, props.document?.id] as const, ([collection, id]) => { if (!collection || !id) return - history.visit(collection, toSearchHit(props.document)) + if (!props.noTrackVisit) history.visit(collection, toSearchHit(props.document)) }, { immediate: true } ) diff --git a/app/pages/historial.vue b/app/pages/historial.vue index a55284d..997c352 100644 --- a/app/pages/historial.vue +++ b/app/pages/historial.vue @@ -563,6 +563,7 @@ const nearLimit = computed(() => histTotal.value >= Math.floor(HISTORY_LIMIT * 0 v-if="selected && !isMobile && isEntrelinea" :document="selectedEntrelineaDoc!" :collection="selectedCollection" + no-track-visit @close="selected = null" /> @@ -573,6 +574,7 @@ const nearLimit = computed(() => histTotal.value >= Math.floor(HISTORY_LIMIT * 0 :paragraphs="detailParagraphs" :paragraphs-loading="detailParagraphsLoading" :collection="selectedCollection!" + no-track-visit @close="selected = null" />