diff --git a/src/components/scanstations/AddScanStationModal.svelte b/src/components/scanstations/AddScanStationModal.svelte index 921fbcbd..1794e16c 100644 --- a/src/components/scanstations/AddScanStationModal.svelte +++ b/src/components/scanstations/AddScanStationModal.svelte @@ -5,7 +5,9 @@ import { ScanStationService, TrackService } from "@odit/lfk-client-js"; import Toastify from "toastify-js"; export let modal_open; + export let new_station; export let current_stations; + export let copy_modal_open; let tracks = []; TrackService.trackControllerGetAll().then((val) => { tracks = val; @@ -59,6 +61,8 @@ }).showToast(); current_stations.push(result); current_stations = current_stations; + new_station=result; + copy_modal_open=true; }) .catch((err) => { // diff --git a/src/components/scanstations/CopyScanStationTokenModal.svelte b/src/components/scanstations/CopyScanStationTokenModal.svelte new file mode 100644 index 00000000..7ef8d3e1 --- /dev/null +++ b/src/components/scanstations/CopyScanStationTokenModal.svelte @@ -0,0 +1,127 @@ + + +{#if copy_modal_open} + {#if valueCopy != null} + + {/if} +
+ The scanstation's api token will only get displayed once - you
+ won't be able to change or view it again!
+
+ Please copy the token and store it somewhere save!
+
+ {new_station.key} +
+