Skip to content

Commit

Permalink
Display only one context source in list view (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
udgover authored Dec 1, 2024
1 parent 8bf2c7f commit 7bbb349
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/views/ObservableSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@
</template>
<template v-slot:item.context="{ item }">
<v-chip
v-for="context in item.context"
color="green"
:text="context.source"
class="mx-1"
label
color="green"
size="small"
></v-chip>
class="mx-1"
v-for="source in new Set(item.context.map(c => c.source))"
v-bind:key="source"
>
{{ source }}
</v-chip>
</template>
<template v-slot:item.created="{ item }"> {{ moment(item.created).format("YYYY-MM-DD HH:mm:ss") }} </template>
</v-data-table-server>
Expand Down

0 comments on commit 7bbb349

Please sign in to comment.