Scan station management feature/93-scan_stations #95

Merged
niggl merged 33 commits from feature/93-scan_stations into dev 2021-03-15 15:55:30 +00:00
Showing only changes of commit 85fa9d942e - Show all commits

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}