Merge pull request #7876 from Budibase/fix/hide-disabled-attachment-dropzone
Fix/hide disabled attachment dropzone
This commit is contained in:
commit
db34acde99
|
@ -65,6 +65,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$: showDropzone =
|
||||||
|
(!maximum || (maximum && value?.length < maximum)) && !disabled
|
||||||
|
|
||||||
async function processFileList(fileList) {
|
async function processFileList(fileList) {
|
||||||
if (
|
if (
|
||||||
handleFileTooLarge &&
|
handleFileTooLarge &&
|
||||||
|
@ -211,7 +214,7 @@
|
||||||
{/each}
|
{/each}
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
{#if !maximum || (maximum && value?.length < maximum)}
|
{#if showDropzone}
|
||||||
<div
|
<div
|
||||||
class="spectrum-Dropzone"
|
class="spectrum-Dropzone"
|
||||||
class:is-invalid={!!error}
|
class:is-invalid={!!error}
|
||||||
|
|
Loading…
Reference in New Issue