Bump version, add toast
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user