working better

This commit is contained in:
Henrique Dias
2017-07-03 15:19:17 +01:00
parent 8d891f0d51
commit 12c466d2aa
20 changed files with 292 additions and 250 deletions

View File

@@ -69,8 +69,7 @@
<script>
import {mapState} from 'vuex'
import Item from './ListingItem'
import webdav from '@/utils/webdav'
import page from '@/utils/page'
import api from '@/utils/api'
export default {
name: 'listing',
@@ -138,12 +137,12 @@ export default {
let promises = []
for (let file of files) {
promises.push(webdav.put(window.location.pathname + base + file.name, file))
promises.push(api.put(this.$route.path + base + file.name, file))
}
Promise.all(promises)
.then(() => {
page.reload()
// page.reload()
// buttons.setDone('upload')
})
.catch(e => {