From d59861fe10fd3ecb191509b596950c10b36201eb Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 3 Dec 2024 13:27:52 -0500 Subject: [PATCH] Avoid unhelpful accepted format drop downs. --- .../src/components/Form/Elements/FormData/FormData.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/src/components/Form/Elements/FormData/FormData.vue b/client/src/components/Form/Elements/FormData/FormData.vue index d2a0e0b87ce9..de820ccef641 100644 --- a/client/src/components/Form/Elements/FormData/FormData.vue +++ b/client/src/components/Form/Elements/FormData/FormData.vue @@ -90,6 +90,14 @@ const dragTarget: Ref = ref(null); const collectionModalShow = ref(false); const collectionModalType = ref<"list" | "list:paired" | "paired">("list"); const { currentHistoryId } = storeToRefs(useHistoryStore()); +const restrictsExtensions = computed(() => { + const extensions = props.extensions; + if (!extensions || extensions.length == 0 || extensions.indexOf("data") >= 0) { + return false; + } else { + return true; + } +}); /** Store options which need to be preserved **/ const keepOptions: Record = {}; @@ -649,7 +657,7 @@ const noOptionsWarningMessage = computed(() => { -
+
accepted formats