Adding approximate amount of results into the list.
This commit is contained in:
parent
ec37adee8a
commit
3e79c2ee16
|
|
@ -618,7 +618,9 @@ const rows = computed<RowVm[]>(() => {
|
|||
body: bodyResult?.html ?? null,
|
||||
bodyApproximate: bodyResult?.approximate ?? false,
|
||||
extraSnippets,
|
||||
extraFields
|
||||
extraFields,
|
||||
matchesPosition: activity._matchesPosition,
|
||||
bodyMatchCount: activity._matchesPosition?.body?.length
|
||||
}
|
||||
})
|
||||
|
||||
|
|
@ -688,6 +690,9 @@ useIntersectionObserver(
|
|||
<div class="text-sm font-semibold line-clamp-2" v-html="row.title" />
|
||||
<div class="flex items-center gap-1 shrink-0">
|
||||
<UChip v-if="row.activity.unread" />
|
||||
<UTooltip text="Cantidad aproximada de resultados">
|
||||
<UBadge v-if="row.bodyMatchCount>0" :label="row.bodyMatchCount" size="sm" variant="outline" />
|
||||
</UTooltip>
|
||||
<UTooltip
|
||||
v-if="collection"
|
||||
:text="favorites.isFavorite(collection, row.activity._id) ? 'Quitar de mi lista' : 'Guardar en mi lista'"
|
||||
|
|
|
|||
Loading…
Reference in New Issue