Refactoring: move uploadGPXToOSm into svelte

This commit is contained in:
Pieter Vander Vennet 2024-01-11 02:20:57 +01:00
parent 7b9a748199
commit 34d8527718
9 changed files with 222 additions and 198 deletions

View file

@ -0,0 +1,10 @@
import { Store } from "../Logic/UIEventSource"
export function selectDefault(htmlElement: HTMLInputElement, value: Store<string>) {
if (!document.body.contains(htmlElement) || value?.data === undefined) {
return
}
if (value.data === htmlElement.value) {
htmlElement.checked = true
}
}