From 400aee9d92aa3f0f041f2e7021e9d67a23330ec4 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Thu, 2 Dec 2021 16:51:13 +0000 Subject: [PATCH] Fix datasource selection after import and add maxmimum files support to dropzone --- packages/bbui/src/Form/Core/Dropzone.svelte | 215 +++++++++--------- packages/bbui/src/Form/Dropzone.svelte | 2 + .../modals/ImportRestQueriesModal.svelte | 30 ++- 3 files changed, 130 insertions(+), 117 deletions(-) diff --git a/packages/bbui/src/Form/Core/Dropzone.svelte b/packages/bbui/src/Form/Core/Dropzone.svelte index 1595a2ea9..bbaf5a3ff 100644 --- a/packages/bbui/src/Form/Core/Dropzone.svelte +++ b/packages/bbui/src/Form/Core/Dropzone.svelte @@ -21,6 +21,7 @@ export let gallery = true export let error = null export let fileTags = [] + export let maximum = null const dispatch = createEventDispatcher() const imageExtensions = [ @@ -187,116 +188,118 @@ {/each} {/if} {/if} -
-
- - - - - - +
+ - - - - - - - - - - -

- Drag and drop your file -

- {#if !disabled} -

- -
- from your computer -

- {#if fileTags.length} - -
- {#each fileTags as tag} -
- - {tag} - -
- {/each} -
-
+ + + + + + + + + + + + + + +

+ Drag and drop your file +

+ {#if !disabled} +

+ +
+ from your computer +

+ {#if fileTags.length} + +
+ {#each fileTags as tag} +
+ + {tag} + +
+ {/each} +
+
+ {/if} {/if} - {/if} +
-
+ {/if}