parent
83e782c7c5
commit
85fa9d942e
@ -1,16 +1,16 @@
|
|||||||
<script>
|
<script>
|
||||||
import { _ } from "svelte-i18n";
|
import { _ } from "svelte-i18n";
|
||||||
import store from "../../store";
|
import store from "../../store";
|
||||||
// import AddContactModal from "./AddContactModal.svelte";
|
import AddScanStationModal from "./AddScanStationModal.svelte";
|
||||||
import ScanStationsOverview from "./ScanStationsOverview.svelte";
|
import ScanStationsOverview from "./ScanStationsOverview.svelte";
|
||||||
export let modal_open = false;
|
export let modal_open = false;
|
||||||
let current_contacts = [];
|
let current_stations = [];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section class="container p-5">
|
<section class="container p-5">
|
||||||
<span class="mb-1 text-3xl font-extrabold leading-tight">
|
<span class="mb-1 text-3xl font-extrabold leading-tight">
|
||||||
Scanstations
|
Scanstations
|
||||||
{#if store.state.jwtinfo.userdetails.permissions.includes('CONTACT:CREATE')}
|
{#if store.state.jwtinfo.userdetails.permissions.includes('STATION:CREATE')}
|
||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
modal_open = true;
|
modal_open = true;
|
||||||
@ -21,9 +21,9 @@
|
|||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
<ContactsOverview bind:current_contacts />
|
<ScanStationsOverview bind:current_stations />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- {#if store.state.jwtinfo.userdetails.permissions.includes('CONTACT:CREATE')}
|
{#if store.state.jwtinfo.userdetails.permissions.includes('STATION:CREATE')}
|
||||||
<AddContactModal bind:current_contacts bind:modal_open />
|
<AddScanStationModal bind:current_stations bind:modal_open />
|
||||||
{/if} -->
|
{/if}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user