remove clear fileInfoDetail after load data , add clear fileInfoDetail after open another folder

This commit is contained in:
Milos Holba
2020-12-07 19:08:45 +01:00
parent 397fe6b7e4
commit 59ff07fb01
4 changed files with 27 additions and 145 deletions

View File

@@ -237,6 +237,10 @@ export default {
this.$downloadFile(this.data.file_url, this.data.name + '.' + this.data.mimetype)
} else if (this.isFolder) {
//Clear selected data after open another folder
this.$store.commit('CLEAR_FILEINFO_DETAIL')
if (this.$isThisLocation('public')) {
this.$store.dispatch('browseShared', [{ folder: this.data, back: false, init: false }])
} else {

View File

@@ -246,6 +246,10 @@ export default {
this.$downloadFile(this.data.file_url, this.data.name + '.' + this.data.mimetype)
} else if (this.isFolder) {
//Clear selected items after open another folder
this.$store.commit('CLEAR_FILEINFO_DETAIL')
if (this.$isThisLocation('public')) {
this.$store.dispatch('browseShared', [{ folder: this.data, back: false, init: false }])
} else {

View File

@@ -49,7 +49,6 @@ const actions = {
commit('REMOVE_BROWSER_HISTORY')
events.$emit('scrollTop')
commit('CLEAR_FILEINFO_DETAIL')
})
.catch(error => {
@@ -84,7 +83,6 @@ const actions = {
.then(response => {
commit('LOADING_STATE', {loading: false, data: response.data})
events.$emit('scrollTop')
commit('CLEAR_FILEINFO_DETAIL')
})
.catch(() => isSomethingWrong())
},
@@ -107,7 +105,6 @@ const actions = {
commit('STORE_PREVIOUS_FOLDER', currentFolder)
events.$emit('scrollTop')
commit('CLEAR_FILEINFO_DETAIL')
})
.catch(() => isSomethingWrong())
},
@@ -149,7 +146,6 @@ const actions = {
commit('STORE_PREVIOUS_FOLDER', trash)
events.$emit('scrollTop')
commit('CLEAR_FILEINFO_DETAIL')
})
.catch(() => isSomethingWrong())
},