Apply valid file type change to AttachmentField in cloud only.

This commit is contained in:
Sam Rose 2023-10-27 17:29:05 +01:00
parent f1aa32e446
commit 84ba840dbc
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -3,13 +3,16 @@
import { CoreDropzone } from "@budibase/bbui"
import { getContext } from "svelte"
import { ValidFileExtensions } from "@budibase/shared-core"
import { environmentStore } from "../../../stores/index.js"
export let field
export let label
export let disabled = false
export let compact = false
export let validation
export let extensions = ValidFileExtensions.map(ext => `.${ext}`).join(", ")
export let extensions = $environmentStore.cloud
? ValidFileExtensions.map(ext => `.${ext}`).join(", ")
: "*"
export let onChange
export let maximum = undefined