mirror of
https://github.com/directus/directus.git
synced 2026-01-24 15:27:59 -05:00
Allow multiple new files to be uploaded in files interface
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
<v-dialog v-model="showUpload">
|
||||
<v-card>
|
||||
<v-card-title>{{ $t('upload_file') }}</v-card-title>
|
||||
<v-card-text><v-upload @upload="onUpload" /></v-card-text>
|
||||
<v-card-text><v-upload @upload="onUpload" multiple /></v-card-text>
|
||||
<v-card-actions>
|
||||
<v-button @click="showUpload = false">{{ $t('done') }}</v-button>
|
||||
</v-card-actions>
|
||||
|
||||
@@ -42,7 +42,7 @@ export default function usePreview({
|
||||
// Every time the value changes, we'll reset the preview values. This ensures that we'll
|
||||
// almost show the most up to date information in the preview table, regardless of if this
|
||||
// is the first load or a subsequent edit.
|
||||
watch(value, setPreview);
|
||||
watch(value, setPreview, { immediate: true });
|
||||
|
||||
return { loading, previewItems, error };
|
||||
|
||||
@@ -127,7 +127,7 @@ export default function usePreview({
|
||||
const response = await api.get(`/items/${junctionTable}`, {
|
||||
params: {
|
||||
fields: adjustFieldsForDisplay(fieldsToFetch, junctionCollection.value),
|
||||
[`filter[${currentInJunction}][eq]`]: primaryKey.value,
|
||||
[`filter[${currentInJunction}][_eq]`]: primaryKey.value,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user