Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:karlomikus/vue-salt-rim into dev…
Browse files Browse the repository at this point in the history
…elop
  • Loading branch information
karlomikus committed Oct 12, 2023
2 parents ede8ef2 + 3e90fec commit 03dfb52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Collections/CollectionIndex.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
<tbody>
<tr v-for="collection in collections" :key="collection.id">
<td>
<a href="#" @click.prevent="openDialog($t('collections.edit'), collection)">{{ collection.name }}</a>
<RouterLink :to="{ name: 'cocktails', query: { 'filter[collection_id]': collection.id } }">{{ collection.name }}</RouterLink>
<br>
<small>{{ collection.cocktails.length }} {{ $t('cocktails.title') }} &middot; {{ collection.description ? overflowText(collection.description, 100) : 'n/a' }}</small>
</td>
<td style="text-align: right;">
<a class="list-group__action" href="#" @click.prevent="shareCollection(collection)">{{ $t('share.title') }}</a>
&middot;
<RouterLink class="list-group__action" :to="{ name: 'cocktails', query: { 'filter[collection_id]': collection.id } }">{{ $t('view') }}</RouterLink>
<a class="list-group__action" href="#" @click.prevent="openDialog($t('collections.edit'), collection)">{{ $t('edit') }}</a>
&middot;
<a class="list-group__action" href="#" @click.prevent="deleteCollection(collection)">{{ $t('remove') }}</a>
</td>
Expand Down

0 comments on commit 03dfb52

Please sign in to comment.