mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 06:19:38 +02:00
is visited
This commit is contained in:
parent
9d42dbac98
commit
727daf0cfd
10 changed files with 284 additions and 281 deletions
|
@ -16,7 +16,6 @@
|
|||
import CollectionLink from './CollectionLink.svelte';
|
||||
import DotsHorizontal from '~icons/mdi/dots-horizontal';
|
||||
import DeleteWarning from './DeleteWarning.svelte';
|
||||
import { isAdventureVisited } from '$lib';
|
||||
import CardCarousel from './CardCarousel.svelte';
|
||||
import { t } from 'svelte-i18n';
|
||||
|
||||
|
@ -132,7 +131,7 @@
|
|||
<div>
|
||||
<div class="badge badge-primary">{$t(`adventures.activities.${adventure.type}`)}</div>
|
||||
<div class="badge badge-success">
|
||||
{isAdventureVisited(adventure) ? $t('adventures.visited') : $t('adventures.planned')}
|
||||
{adventure.is_visited ? $t('adventures.visited') : $t('adventures.planned')}
|
||||
</div>
|
||||
<div class="badge badge-secondary">
|
||||
{adventure.is_public ? $t('adventures.public') : $t('adventures.private')}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue