Finished scanstations base view

ref #93
This commit is contained in:
Nicolai Ort 2021-03-10 17:16:50 +01:00
parent 83e782c7c5
commit 85fa9d942e

View File

@ -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}