Merged existing changes from 'develop'

This commit is contained in:
shpuld 2017-02-22 15:04:28 +02:00
commit ded2d54cca
10 changed files with 83 additions and 28 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()
@ -54,8 +54,9 @@ const mediaUpload = {
],
watch: {
'dropFiles': function (fileInfos) {
if (!this.uploading)
if (!this.uploading) {
this.uploadFile(fileInfos[0])
}
}
}
}