feat: saving school location
All checks were successful
TrafficCue CI / check (push) Successful in 1m4s
TrafficCue CI / build (push) Successful in 47s

This commit is contained in:
Cfp
2025-07-17 14:59:59 +02:00
parent 56372a6df6
commit b6959882d4
4 changed files with 66 additions and 3 deletions

View File

@ -9,6 +9,7 @@
MailIcon,
PhoneIcon,
RouteIcon,
SchoolIcon,
} from "@lucide/svelte";
import { pin } from "../map.svelte";
import SidebarHeader from "./SidebarHeader.svelte";
@ -182,6 +183,16 @@
<HomeIcon />
Set as Home
</Button>
<Button
variant="outline"
onclick={() => {
saved.school = { lat, lon: lng };
saveLocations();
}}
>
<SchoolIcon />
Set as School
</Button>
<Button
variant="outline"
onclick={() => {