Scan reactive add
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
import ScansOverview from "./ScansOverview.svelte";
|
||||
$: current_scans = [];
|
||||
export let modal_open = false;
|
||||
let addScans;
|
||||
</script>
|
||||
|
||||
<section class="container p-5">
|
||||
@@ -21,9 +22,11 @@
|
||||
</button>
|
||||
{/if}
|
||||
</span>
|
||||
<ScansOverview bind:current_scans />
|
||||
<ScansOverview bind:current_scans bind:addScans />
|
||||
</section>
|
||||
|
||||
{#if store.state.jwtinfo.userdetails.permissions.includes('SCAN:CREATE')}
|
||||
<AddScanModal bind:current_scans bind:modal_open />
|
||||
<AddScanModal bind:modal_open on:created={(event)=>{
|
||||
addScans(event.detail.scans)
|
||||
}} />
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user