wip upload files and select

This commit is contained in:
2026-05-05 19:21:59 +03:00
parent bd01e5c32c
commit 16e50e2d49
13 changed files with 439 additions and 208 deletions
+7 -12
View File
@@ -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>