mirror of
https://github.com/directus/directus.git
synced 2026-01-28 19:08:05 -05:00
add upload event for file imports (#7697)
This commit is contained in:
@@ -92,6 +92,7 @@ import uploadFiles from '@/utils/upload-files';
|
||||
import uploadFile from '@/utils/upload-file';
|
||||
import DrawerCollection from '@/views/private/components/drawer-collection';
|
||||
import api from '@/api';
|
||||
import emitter, { Events } from '@/events';
|
||||
import { unexpectedError } from '@/utils/unexpected-error';
|
||||
|
||||
export default defineComponent({
|
||||
@@ -293,6 +294,8 @@ export default defineComponent({
|
||||
},
|
||||
});
|
||||
|
||||
emitter.emit(Events.upload);
|
||||
|
||||
if (props.multiple) {
|
||||
emit('input', [response.data.data]);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user