fix: update conditionals in AdventureModal and CategoryDropdown for improved logic
This commit is contained in:
@@ -832,7 +832,7 @@ it would also work to just use on:click on the MapLibre component itself. -->
|
|||||||
{$t('adventures.mark_visited')}
|
{$t('adventures.mark_visited')}
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
{#if (willBeMarkedVisited && !reverseGeocodePlace.region_visited) || (!reverseGeocodePlace.city_visited && willBeMarkedVisited)}
|
{#if (willBeMarkedVisited && !reverseGeocodePlace.region_visited && reverseGeocodePlace.region_id) || (!reverseGeocodePlace.city_visited && willBeMarkedVisited && reverseGeocodePlace.city_id)}
|
||||||
<div role="alert" class="alert alert-info mt-2">
|
<div role="alert" class="alert alert-info mt-2">
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
bind:value={new_category.icon}
|
bind:value={new_category.icon}
|
||||||
/>
|
/>
|
||||||
<button on:click={toggleEmojiPicker} type="button" class="btn btn-secondary">
|
<button on:click={toggleEmojiPicker} type="button" class="btn btn-secondary">
|
||||||
{isEmojiPickerVisible ? $t('adventures.hide') : $t('adventures.hide')}
|
{!isEmojiPickerVisible ? $t('adventures.show') : $t('adventures.hide')}
|
||||||
{$t('adventures.emoji_picker')}
|
{$t('adventures.emoji_picker')}
|
||||||
</button>
|
</button>
|
||||||
<button on:click={custom_category} type="button" class="btn btn-primary">
|
<button on:click={custom_category} type="button" class="btn btn-primary">
|
||||||
|
|||||||
Reference in New Issue
Block a user