mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-23 23:09:37 +02:00
feat: add auto-generation for item name in LocationDropdown and improve theme handling in Navbar
This commit is contained in:
parent
6c338b8c0f
commit
d6ab4e9f64
2 changed files with 9 additions and 2 deletions
|
@ -22,6 +22,8 @@
|
|||
let places: GeocodeSearchResult[] = [];
|
||||
let noPlaces: boolean = false;
|
||||
|
||||
let isNameAutoGenerated: boolean = false;
|
||||
|
||||
onMount(() => {
|
||||
if (initialLatLng) {
|
||||
markers = [
|
||||
|
@ -277,8 +279,10 @@
|
|||
activity_type: place.type ?? ''
|
||||
}
|
||||
];
|
||||
|
||||
item.name = place.name ?? '';
|
||||
if (isNameAutoGenerated || !item.name) {
|
||||
item.name = place.name ?? '';
|
||||
isNameAutoGenerated = true;
|
||||
}
|
||||
}}
|
||||
>
|
||||
<span>{place.name}</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue