Added station token copy modal

ref #93
This commit is contained in:
2021-03-10 19:55:32 +01:00
parent 870e772da2
commit 88566719ec
4 changed files with 142 additions and 3 deletions

View File

@@ -2,8 +2,11 @@
import { _ } from "svelte-i18n";
import store from "../../store";
import AddScanStationModal from "./AddScanStationModal.svelte";
import CopyScanStationTokenModal from "./CopyScanStationTokenModal.svelte";
import ScanStationsOverview from "./ScanStationsOverview.svelte";
export let modal_open = false;
export let copy_modal_open = false;
export let new_station = {};
let current_stations = [];
</script>
@@ -21,9 +24,10 @@
</button>
{/if}
</span>
<ScanStationsOverview bind:current_stations />
<ScanStationsOverview bind:current_stations bind:modal_open bind:new_station bind:copy_modal_open />
</section>
{#if store.state.jwtinfo.userdetails.permissions.includes('STATION:CREATE')}
<AddScanStationModal bind:current_stations bind:modal_open />
<AddScanStationModal bind:modal_open bind:current_stations bind:new_station bind:copy_modal_open/>
<CopyScanStationTokenModal bind:copy_modal_open bind:new_station />
{/if}