diff --git a/src/components/scanstations/AddScanStationModal.svelte b/src/components/scanstations/AddScanStationModal.svelte index 3b628584..f340388a 100644 --- a/src/components/scanstations/AddScanStationModal.svelte +++ b/src/components/scanstations/AddScanStationModal.svelte @@ -48,8 +48,9 @@ ScanStationService.scanStationControllerPost(postdata) .then((result) => { description = ""; - track = null; + track = tracks[0].id; enabled = true; + modal_open = false; // Toastify({ text: "Scanstation added", @@ -114,7 +115,8 @@
- Please provide the required information to create a new scanstation + Please provide the required information to create a new + scanstation
+ { + enabled = !enabled; + }} + name="enabled" + type="checkbox" + checked={enabled} + class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded" /> + This scanstation is {#if enabled}enabled{:else}disabled{/if} +
+