Small style adjustment, add meta-enter posting.

This commit is contained in:
Roger Braun 2017-02-21 21:48:48 +01:00
parent 34a593aa27
commit 892b826df5
3 changed files with 5 additions and 4 deletions

View file

@ -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])
}
}
}
}