@dosgato/dialog 0.0.61 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -80,7 +80,7 @@ onMount(async () => {
|
|
|
80
80
|
const previewId = randomid();
|
|
81
81
|
</script>
|
|
82
82
|
|
|
83
|
-
<Dialog size="xl" ignoreTabs title={label} on:escape continueText="Choose" disabled={!$preview && required} cancelText="Cancel"
|
|
83
|
+
<Dialog size="xl" ignoreTabs title={label} on:escape continueText="Choose" disabled={!$preview && required} cancelText="Cancel">
|
|
84
84
|
<section class="dialog-chooser-window">
|
|
85
85
|
<header class="dialog-chooser-controls">
|
|
86
86
|
{#if $sources.length > 1}
|
|
@@ -106,7 +106,7 @@ const previewId = randomid();
|
|
|
106
106
|
<Button class="upload" disabled={$selected?.type !== 'folder' || !(chooserClient.mayUpload?.($selected) ?? true)} on:click={() => { showuploader = true }}>Upload</Button>
|
|
107
107
|
{/if}
|
|
108
108
|
<Button cancel {describedby} on:click={() => dispatch('escape')}>Cancel</Button>
|
|
109
|
-
<Button class="primary" disabled={!$preview && required} describedby={previewId} on:click={
|
|
109
|
+
<Button class="primary" disabled={!$preview && required} describedby={previewId} on:click={onChoose}>Choose</Button>
|
|
110
110
|
</svelte:fragment>
|
|
111
111
|
{#if showuploader && $selected?.type === 'folder' && chooserClient.upload}
|
|
112
112
|
<UploadUI title="Upload to {$selected.path}" folder={$selected} uploader={chooserClient.upload.bind(chooserClient)} on:escape={() => { showuploader = false }} on:saved={onUploadComplete}/>
|
|
@@ -47,6 +47,8 @@ async function onUploadSubmit() {
|
|
|
47
47
|
for (let i = 0; i < uploadList.length; i++) {
|
|
48
48
|
data.append('file' + i, uploadList[i]);
|
|
49
49
|
}
|
|
50
|
+
// TODO: accept new list of children from uploader function and feed it
|
|
51
|
+
// to the tree instead of refreshing the tree
|
|
50
52
|
await uploader(folder, uploadList, ratio => { uploadProgress = ratio; });
|
|
51
53
|
uploadList = [];
|
|
52
54
|
uploadError = undefined;
|
package/package.json
CHANGED