wip upload files and select
This commit is contained in:
@@ -22,11 +22,6 @@
|
||||
);
|
||||
}
|
||||
|
||||
function openBrowseModal(e, schema) {
|
||||
e.preventDefault();
|
||||
browseModal.open(schema);
|
||||
}
|
||||
|
||||
async function reorder(e) {
|
||||
graph.edges = await sortByField(
|
||||
e.detail.source,
|
||||
@@ -52,15 +47,15 @@
|
||||
function uploadComplete(e) {
|
||||
records = e.detail;
|
||||
}
|
||||
|
||||
function openBrowseModal(e) {
|
||||
e.preventDefault();
|
||||
browseModal.open(record.id);
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="mb-0">
|
||||
<!-- <button
|
||||
class="button"
|
||||
on:click={(e) => openFileModal(e, collections[0].name)}
|
||||
>
|
||||
Browse
|
||||
</button> -->
|
||||
<button class="button" on:click={openBrowseModal}> Browse </button>
|
||||
|
||||
<div>
|
||||
<Uploader recordId={record.id} on:uploadComplete={uploadComplete} />
|
||||
@@ -80,4 +75,4 @@
|
||||
{/each}
|
||||
</Sortable>
|
||||
{/if} -->
|
||||
<!-- <FileDialog bind:this={browseModal} on:insert={insert}></FileDialog> -->
|
||||
<FileDialog bind:this={browseModal} on:insert={insert}></FileDialog>
|
||||
|
||||
Reference in New Issue
Block a user