mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-25 07:49:37 +02:00
Add display_name to ReverseGeocode response and update AdventureModal
This commit is contained in:
parent
25ed72afbc
commit
a7a49227c4
4 changed files with 31 additions and 15 deletions
|
@ -111,6 +111,15 @@
|
|||
markers = [];
|
||||
}
|
||||
|
||||
$: {
|
||||
if (
|
||||
reverseGeocodePlace?.display_name &&
|
||||
adventure.location != reverseGeocodePlace.display_name
|
||||
) {
|
||||
adventure.location = reverseGeocodePlace.display_name;
|
||||
}
|
||||
}
|
||||
|
||||
let imageSearch: string = adventure.name || '';
|
||||
|
||||
async function removeImage(id: string) {
|
||||
|
|
|
@ -175,4 +175,5 @@ export type ReverseGeocode = {
|
|||
region: string;
|
||||
country: string;
|
||||
is_visited: boolean;
|
||||
display_name: string;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue