feat: Add functionality to change a non-adventure to an adventure in AdventureCard component
This commit is contained in:
@@ -209,11 +209,18 @@
|
|||||||
><CheckBold class="w-6 h-6" />Mark Visited</button
|
><CheckBold class="w-6 h-6" />Mark Visited</button
|
||||||
>
|
>
|
||||||
{/if}
|
{/if}
|
||||||
{#if adventure.collection}
|
<!-- remove from adventure -->
|
||||||
|
{#if (adventure.collection && adventure.type == 'visited') || adventure.type == 'planned'}
|
||||||
<button class="btn btn-neutral mb-2" on:click={removeFromCollection}
|
<button class="btn btn-neutral mb-2" on:click={removeFromCollection}
|
||||||
><LinkVariantRemove class="w-6 h-6" />Remove from Collection</button
|
><LinkVariantRemove class="w-6 h-6" />Remove from Collection</button
|
||||||
>
|
>
|
||||||
{/if}
|
{/if}
|
||||||
|
<!-- change a non adventure to an adventure -->
|
||||||
|
{#if adventure.collection && adventure.type == 'lodging'}
|
||||||
|
<button class="btn btn-neutral mb-2" on:click={changeType('visited')}
|
||||||
|
><CheckBold class="w-6 h-6" />Change to Visit</button
|
||||||
|
>
|
||||||
|
{/if}
|
||||||
{#if !adventure.collection}
|
{#if !adventure.collection}
|
||||||
<button class="btn btn-neutral mb-2" on:click={() => (isCollectionModalOpen = true)}
|
<button class="btn btn-neutral mb-2" on:click={() => (isCollectionModalOpen = true)}
|
||||||
><Plus class="w-6 h-6" />Add to Collection</button
|
><Plus class="w-6 h-6" />Add to Collection</button
|
||||||
|
|||||||
Reference in New Issue
Block a user