Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 89544f7

Browse files
committed
✨ spotlight backend sorting
1 parent dcca282 commit 89544f7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

components/spotlight/SpotlightTable.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@
5959
</b-table-column>
6060

6161
<b-table-column
62-
field="uniqueCollectors"
63-
:label="$t('spotlight.uniqueCollectors')">
62+
field="unique_collectors"
63+
:label="$t('spotlight.uniqueCollectors')"
64+
sortable>
6465
<template v-slot:header="{ column }">
6566
<b-tooltip label="unique collectors" append-to-body dashed>
6667
{{ column.label }}
@@ -82,9 +83,10 @@
8283
</b-table-column>
8384

8485
<b-table-column
85-
field="averagePrice"
86+
field="average"
8687
:label="$t('spotlight.averagePrice')"
87-
v-slot="props">
88+
v-slot="props"
89+
sortable>
8890
<template v-if="!isLoading"
8991
><Money :value="props.row.averagePrice" inline
9092
/></template>

0 commit comments

Comments
 (0)