Bump version, add toast

This commit is contained in:
Fred Boniface
2024-07-01 16:07:08 +01:00
parent f93113ec14
commit d09b24655a
3 changed files with 10 additions and 2 deletions

View File

@@ -5,11 +5,16 @@
import Island from "$lib/islands/island.svelte";
import { location } from "$lib/stores/location";
import { getCurrentLocation } from "$lib/scripts/getLocation";
import toast from "svelte-french-toast";
const title = "Settings";
$: if ($location) {
getCurrentLocation()
}
function locationToast() {
toast("Settings updated")
}
</script>
<Header {title} />
@@ -20,7 +25,7 @@
<p>Use your location to quickly check departure boards near you</p>
<div class="checkbox-container">
<label for="location_enable">Enabled</label>
<input id="location_enable" type="checkbox" bind:checked={$location}>
<input id="location_enable" type="checkbox" bind:checked={$location} on:click={locationToast}>
</div>
</Island>