Make reload work
Former-commit-id: c821c066681092fa80300eefecd82394283112cd [formerly 31ee8568a88a7a3f53733c942ddc5d2a120662b6] [formerly fb943bcb74f7b85d390bf0610e6e5735ef1b6b74 [formerly 9e42f0f1ed
]]
Former-commit-id: 142eda7f066e312d38f31b01c090a32005a94248 [formerly 2cee72b9263f86c146a43e6dfd32f6e6642f9f11]
Former-commit-id: a8a4617e1ebbf3089880ab670a4f62402c44b637
This commit is contained in:
parent
d3790cd449
commit
1fa6cd8e40
|
@ -142,7 +142,7 @@ export default {
|
|||
|
||||
Promise.all(promises)
|
||||
.then(() => {
|
||||
// page.reload()
|
||||
this.$store.commit('setReload', true)
|
||||
// buttons.setDone('upload')
|
||||
})
|
||||
.catch(e => {
|
||||
|
|
|
@ -91,7 +91,7 @@ export default {
|
|||
|
||||
Promise.all(promises)
|
||||
.then(() => {
|
||||
// page.reload()
|
||||
this.$store.commit('setReload', true)
|
||||
})
|
||||
.catch(error => console.log(error))
|
||||
},
|
||||
|
|
|
@ -136,6 +136,7 @@ export default {
|
|||
...mapState([
|
||||
'req',
|
||||
'user',
|
||||
'reload',
|
||||
'baseURL',
|
||||
'multiple',
|
||||
'showInfo',
|
||||
|
@ -167,7 +168,11 @@ export default {
|
|||
this.fetchData()
|
||||
},
|
||||
watch: {
|
||||
'$route': 'fetchData'
|
||||
'$route': 'fetchData',
|
||||
'reload': function () {
|
||||
this.$store.commit('setReload', false)
|
||||
this.fetchData()
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
updateColumnSizes()
|
||||
|
|
|
@ -110,7 +110,7 @@ export default {
|
|||
conn.onclose = (event) => {
|
||||
this.ongoing = false
|
||||
this.scrollable.scrollTop = this.scrollable.scrollHeight
|
||||
// page.reload()
|
||||
this.$store.commit('setReload', true)
|
||||
}
|
||||
|
||||
return
|
||||
|
|
|
@ -54,12 +54,12 @@ export default {
|
|||
|
||||
Promise.all(promises)
|
||||
.then(() => {
|
||||
// page.reload()
|
||||
this.$store.commit('setReload', true)
|
||||
// buttons.setDone('delete')
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error)
|
||||
// page.reload()
|
||||
this.$store.commit('setReload', true)
|
||||
// buttons.setDone('delete', false)
|
||||
})
|
||||
}
|
||||
|
|
|
@ -61,10 +61,8 @@ export default {
|
|||
return
|
||||
}
|
||||
// TODO: keep selected after reload?
|
||||
// page.reload()
|
||||
// buttons.setDone('rename')
|
||||
console.log('reload')
|
||||
this.$router.go({ path: this.$route.path })
|
||||
this.$store.commit('setReload', true)
|
||||
}).catch(error => {
|
||||
// buttons.setDone('rename', false)
|
||||
console.log(error)
|
||||
|
|
|
@ -17,6 +17,7 @@ const mutations = {
|
|||
state.showNewDir = false
|
||||
state.showDownload = false
|
||||
},
|
||||
setReload: (state, value) => (state.reload = value),
|
||||
setUser: (state, value) => (state.user = value),
|
||||
setJWT: (state, value) => (state.jwt = value),
|
||||
multiple: (state, value) => (state.multiple = value),
|
||||
|
|
|
@ -11,6 +11,7 @@ const state = {
|
|||
baseURL: document.querySelector('meta[name="base"]').getAttribute('content'),
|
||||
ssl: (window.location.protocol === 'https:'),
|
||||
jwt: '',
|
||||
reload: false,
|
||||
selected: [],
|
||||
multiple: false,
|
||||
showInfo: false,
|
||||
|
|
Loading…
Reference in New Issue