From 42ed4c28f98a96c3ad9707375ae259355b8b131b Mon Sep 17 00:00:00 2001 From: Avris Date: Wed, 6 Jan 2021 15:38:05 +0100 Subject: [PATCH] #158 [sources] support images in /sources --- components/ImageUploader.vue | 1 + components/Source.vue | 3 +++ components/SourceSubmitForm.vue | 7 +++++++ locale/de/translations.suml | 1 + locale/en/translations.suml | 1 + locale/es/translations.suml | 1 + locale/pl/translations.suml | 1 + locale/zh/translations.suml | 8 ++++++++ migrations/019-source-images.sql | 5 +++++ server/routes/sources.js | 7 ++++--- src/classes.js | 2 ++ 11 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 migrations/019-source-images.sql diff --git a/components/ImageUploader.vue b/components/ImageUploader.vue index 71437452..7c924a41 100644 --- a/components/ImageUploader.vue +++ b/components/ImageUploader.vue @@ -41,6 +41,7 @@ if (!fileList.length) { return; } + this.drag = false; const formData = new FormData(); for (let file of fileList) { formData.append(fieldName, file, file.name); diff --git a/components/Source.vue b/components/Source.vue index 51c1cd61..5060709a 100644 --- a/components/Source.vue +++ b/components/Source.vue @@ -1,5 +1,8 @@