updated dependencies
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
|
||||
import {createEventDispatcher, getContext, onMount} from "svelte";
|
||||
import {createEventDispatcher, getContext} from "svelte";
|
||||
import Icon from "../common/Icon.svelte";
|
||||
import Index from "../content/Index.svelte";
|
||||
|
||||
@@ -15,7 +15,11 @@
|
||||
// });
|
||||
|
||||
|
||||
export function close() {
|
||||
export function close(e) {
|
||||
if(e){
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
dialogEl.close()
|
||||
selectedRecords = [];
|
||||
}
|
||||
@@ -45,23 +49,22 @@
|
||||
});
|
||||
}
|
||||
|
||||
export function open(schema) {
|
||||
export function open( schema) {
|
||||
dialogEl.showModal()
|
||||
load(schema);
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<dialog bind:this={dialogEl}>
|
||||
{#if data.schema}
|
||||
{#if data.schema}
|
||||
|
||||
|
||||
<div class="dialog-header">
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-primary me-1"
|
||||
class="button"
|
||||
on:click={insert}
|
||||
disabled={selectedRecords.length === 0}
|
||||
>
|
||||
@@ -69,7 +72,7 @@
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-outline-primary me-3"
|
||||
class="button"
|
||||
on:click={replace}
|
||||
disabled={selectedRecords.length === 0}
|
||||
>
|
||||
@@ -89,9 +92,9 @@
|
||||
>
|
||||
<Icon icon="close"></Icon>
|
||||
</button>
|
||||
<div class="dialog-body">
|
||||
<Index {...data} bind:selected={selectedRecords}></Index>
|
||||
</div>
|
||||
<div class="dialog-body">
|
||||
<Index {...data} bind:selected={selectedRecords}></Index>
|
||||
</div>
|
||||
|
||||
{/if}
|
||||
</dialog>
|
||||
Reference in New Issue
Block a user