mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-28 17:29:36 +02:00
fix: update conditionals in AdventureModal and CategoryDropdown for improved logic
This commit is contained in:
parent
32125efed4
commit
0f828dd0bf
2 changed files with 2 additions and 2 deletions
|
@ -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">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue