aboutsummaryrefslogtreecommitdiff
path: root/src/components/media_upload
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-02-21 21:48:48 +0100
committerRoger Braun <roger@rogerbraun.net>2017-02-21 21:48:48 +0100
commit892b826df59203a920bfebbd2ac37ef62dcf411b (patch)
tree88457199cff327937c2b791e7b54e8cde6f2e085 /src/components/media_upload
parent34a593aa27bce261248a820f16c0b34b3a448387 (diff)
Small style adjustment, add meta-enter posting.
Diffstat (limited to 'src/components/media_upload')
-rw-r--r--src/components/media_upload/media_upload.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/media_upload/media_upload.js b/src/components/media_upload/media_upload.js
index 3f6fec5b..746970aa 100644
--- a/src/components/media_upload/media_upload.js
+++ b/src/components/media_upload/media_upload.js
@@ -16,7 +16,7 @@ const mediaUpload = {
}
},
methods: {
- uploadFile(file) {
+ uploadFile (file) {
const self = this
const store = this.$store
const formData = new FormData()
@@ -40,8 +40,9 @@ const mediaUpload = {
],
watch: {
'dropFiles': function (fileInfos) {
- if (!this.uploading)
+ if (!this.uploading) {
this.uploadFile(fileInfos[0])
+ }
}
}
}