Skip to content

Commit

Permalink
replace close
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Apr 9, 2024
1 parent 7943843 commit d12c11d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions report-viewer/src/views/ClusterView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@
</template>
</ComparisonsTable>
</template>
<template #Similar-Comparisons>
<template #Related-Comparisons>
<ComparisonsTable
:topComparisons="closeComparisons"
:topComparisons="relatedComparisons"
class="max-h-0 min-h-full flex-1 overflow-hidden"
header="Comparisons close to the Cluster:"
header="Comparisons related to the Cluster:"
/>
</template>
</TabbedContainer>
Expand Down Expand Up @@ -131,7 +131,7 @@ const comparisonTableOptions = [
tooltip: 'Comparisons between the cluster members.'
},
{
displayValue: 'Similar Comparisons',
displayValue: 'Related Comparisons',
tooltip: 'Comparisons between the cluster members\nand other submissions.'
}
]
Expand All @@ -153,7 +153,7 @@ comparisons.value
c.id = counter
})
const closeComparisons = computed(() =>
const relatedComparisons = computed(() =>
props.overview.topComparisons.filter(
(c) =>
(props.cluster.members.includes(c.firstSubmissionId) &&
Expand All @@ -163,7 +163,7 @@ const closeComparisons = computed(() =>
)
)
counter = 0
closeComparisons.value
relatedComparisons.value
.sort((a, b) => b.similarities[usedMetric] - a.similarities[usedMetric])
.forEach((c) => {
c.sortingPlace = counter++
Expand Down

0 comments on commit d12c11d

Please sign in to comment.