fix bug historial
This commit is contained in:
parent
1cf37c0184
commit
763a77d4f5
|
|
@ -66,6 +66,7 @@ const props = defineProps<{
|
||||||
selectedHit?: TypesenseParagraphHit | null
|
selectedHit?: TypesenseParagraphHit | null
|
||||||
selectedMatchingHits?: TypesenseParagraphHit[] | null
|
selectedMatchingHits?: TypesenseParagraphHit[] | null
|
||||||
accentColor?: 'green' | 'blue'
|
accentColor?: 'green' | 'blue'
|
||||||
|
noTrackVisit?: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const emits = defineEmits(['close'])
|
const emits = defineEmits(['close'])
|
||||||
|
|
@ -103,7 +104,7 @@ watch(
|
||||||
() => [props.collection, props.document?.id] as const,
|
() => [props.collection, props.document?.id] as const,
|
||||||
([collection, id]) => {
|
([collection, id]) => {
|
||||||
if (!collection || !id || !props.document) return
|
if (!collection || !id || !props.document) return
|
||||||
history.visit(collection, toSearchHit(props.document))
|
if (!props.noTrackVisit) history.visit(collection, toSearchHit(props.document))
|
||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true }
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ const props = defineProps<{
|
||||||
document: EntrelineaDoc
|
document: EntrelineaDoc
|
||||||
collection?: string
|
collection?: string
|
||||||
highlightedText?: string | null
|
highlightedText?: string | null
|
||||||
|
noTrackVisit?: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const emits = defineEmits<{ close: [] }>()
|
const emits = defineEmits<{ close: [] }>()
|
||||||
|
|
@ -104,7 +105,7 @@ watch(
|
||||||
() => [props.collection, props.document?.id] as const,
|
() => [props.collection, props.document?.id] as const,
|
||||||
([collection, id]) => {
|
([collection, id]) => {
|
||||||
if (!collection || !id) return
|
if (!collection || !id) return
|
||||||
history.visit(collection, toSearchHit(props.document))
|
if (!props.noTrackVisit) history.visit(collection, toSearchHit(props.document))
|
||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true }
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -563,6 +563,7 @@ const nearLimit = computed(() => histTotal.value >= Math.floor(HISTORY_LIMIT * 0
|
||||||
v-if="selected && !isMobile && isEntrelinea"
|
v-if="selected && !isMobile && isEntrelinea"
|
||||||
:document="selectedEntrelineaDoc!"
|
:document="selectedEntrelineaDoc!"
|
||||||
:collection="selectedCollection"
|
:collection="selectedCollection"
|
||||||
|
no-track-visit
|
||||||
@close="selected = null"
|
@close="selected = null"
|
||||||
/>
|
/>
|
||||||
<!-- Resto (actividades, conferencias) → detalle completo con párrafos. -->
|
<!-- Resto (actividades, conferencias) → detalle completo con párrafos. -->
|
||||||
|
|
@ -573,6 +574,7 @@ const nearLimit = computed(() => histTotal.value >= Math.floor(HISTORY_LIMIT * 0
|
||||||
:paragraphs="detailParagraphs"
|
:paragraphs="detailParagraphs"
|
||||||
:paragraphs-loading="detailParagraphsLoading"
|
:paragraphs-loading="detailParagraphsLoading"
|
||||||
:collection="selectedCollection!"
|
:collection="selectedCollection!"
|
||||||
|
no-track-visit
|
||||||
@close="selected = null"
|
@close="selected = null"
|
||||||
/>
|
/>
|
||||||
<div v-else-if="!selected" class="hidden lg:flex flex-1 items-center justify-center">
|
<div v-else-if="!selected" class="hidden lg:flex flex-1 items-center justify-center">
|
||||||
|
|
@ -591,6 +593,7 @@ const nearLimit = computed(() => histTotal.value >= Math.floor(HISTORY_LIMIT * 0
|
||||||
v-if="selected && isEntrelinea"
|
v-if="selected && isEntrelinea"
|
||||||
:document="selectedEntrelineaDoc!"
|
:document="selectedEntrelineaDoc!"
|
||||||
:collection="selectedCollection"
|
:collection="selectedCollection"
|
||||||
|
no-track-visit
|
||||||
@close="selected = null"
|
@close="selected = null"
|
||||||
/>
|
/>
|
||||||
<PublicationDetail
|
<PublicationDetail
|
||||||
|
|
@ -600,6 +603,7 @@ const nearLimit = computed(() => histTotal.value >= Math.floor(HISTORY_LIMIT * 0
|
||||||
:paragraphs="detailParagraphs"
|
:paragraphs="detailParagraphs"
|
||||||
:paragraphs-loading="detailParagraphsLoading"
|
:paragraphs-loading="detailParagraphsLoading"
|
||||||
:collection="selectedCollection!"
|
:collection="selectedCollection!"
|
||||||
|
no-track-visit
|
||||||
@close="selected = null"
|
@close="selected = null"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue