@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user