mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
fixed trash navigator issue
This commit is contained in:
6
resources/js/helpers/functionHelpers.js
vendored
6
resources/js/helpers/functionHelpers.js
vendored
@@ -427,6 +427,12 @@ const FunctionHelpers = {
|
||||
}
|
||||
|
||||
Vue.prototype.$goToFileView = function (id) {
|
||||
// If user is located in trash, then automatically after click on the navigator go to the Files view
|
||||
if (this.$router.currentRoute.name === 'Trash') {
|
||||
this.$router.push({ name: 'Files', params: { id: id } })
|
||||
return
|
||||
}
|
||||
|
||||
let locations = {
|
||||
RequestUpload: {name: 'RequestUpload', params: { token: this.$route.params.token, id: id }},
|
||||
Public: {name: 'Public', params: { token: this.$route.params.token, id: id }},
|
||||
|
||||
Reference in New Issue
Block a user