adds waypoints from photos

This commit is contained in:
Christian Beutel
2025-04-15 15:49:21 +02:00
parent 5db80db06f
commit 8fc10baaf1
14 changed files with 93 additions and 2 deletions

View File

@@ -63,6 +63,9 @@
for (let i = 0; i < dropdownMenu.children.length; i++) {
const li = dropdownMenu.children[i];
const textNode = li.getElementsByTagName("p")[0];
if(!textNode) {
return
}
textNode.innerHTML = items[i].text;
const text = textNode.innerText.replace(

View File

@@ -14,6 +14,7 @@
class="fa fa-{t.icon} p-3 mr-2 rounded-lg"
class:success-toast={t.type == "success"}
class:error-toast={t.type == "error"}
class:warning-toast={t.type == "warning"}
></i>
<p class="mr-4">
{t.text}
@@ -38,4 +39,8 @@
color: #ef4444;
background-color: #fecaca;
}
.warning-toast {
color: #ffb900;
background-color: #fef3c6;
}
</style>

View File

@@ -88,7 +88,7 @@
setFields("lon", convertDMSToDD(lon, lonDir));
} else {
show_toast({
text: "No GPS data in image",
text: $_('no-gps-data-in-image'),
icon: "close",
type: "error",
});