mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
public share navigation
This commit is contained in:
@@ -121,6 +121,7 @@
|
||||
'isVisibleSidebar',
|
||||
'FilePreviewType',
|
||||
'currentFolder',
|
||||
'sharedDetail',
|
||||
'clipboard',
|
||||
]),
|
||||
isLoadedFolder() {
|
||||
|
||||
@@ -258,18 +258,19 @@ export default {
|
||||
// Clear selected items after open another folder
|
||||
this.$store.commit('CLIPBOARD_CLEAR')
|
||||
|
||||
if (this.$isThisLocation('public')) {
|
||||
this.$store.dispatch('browseShared', [{folder: this.item, back: false, init: false}])
|
||||
} else {
|
||||
let route = this.$router.currentRoute.name
|
||||
let route = this.$router.currentRoute.name
|
||||
|
||||
if (route === 'Files')
|
||||
this.$router.push({name: 'Files', params: {id: this.item.id}})
|
||||
if (route === 'Trash')
|
||||
this.$router.push({name: 'Trash', params: {id: this.item.id}})
|
||||
else
|
||||
this.$router.push({name: 'Files', params: {id: this.item.id}})
|
||||
}
|
||||
if (route === 'Public') {
|
||||
this.$router.push({name: 'Public', params: {token: this.$route.params.token, id: this.item.id}})
|
||||
}
|
||||
|
||||
if (route === 'Trash') {
|
||||
this.$router.push({name: 'Trash', params: {id: this.item.id}})
|
||||
}
|
||||
|
||||
if (route === 'Files') {
|
||||
this.$router.push({name: 'Files', params: {id: this.item.id}})
|
||||
}
|
||||
}
|
||||
},
|
||||
renameItem: debounce(function (e) {
|
||||
|
||||
Reference in New Issue
Block a user