mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
team folder browsing with static team folder details
This commit is contained in:
19
resources/js/helpers/functionHelpers.js
vendored
19
resources/js/helpers/functionHelpers.js
vendored
@@ -81,12 +81,6 @@ const FunctionHelpers = {
|
||||
return '/invoice/' + customer + '/' + id
|
||||
}
|
||||
|
||||
Vue.prototype.$openImageOnNewTab = function (source) {
|
||||
let win = window.open(source, '_blank')
|
||||
|
||||
win.focus()
|
||||
}
|
||||
|
||||
Vue.prototype.$uploadFiles = async function (files) {
|
||||
|
||||
if (files.length === 0) return
|
||||
@@ -207,6 +201,19 @@ const FunctionHelpers = {
|
||||
anchor.click()
|
||||
}
|
||||
|
||||
Vue.prototype.$goToFileView = function (id) {
|
||||
|
||||
let locations = {
|
||||
'Public': {name: 'Public', params: {token: this.$route.params.token, id: id}},
|
||||
'TeamFolders': {name: 'TeamFolders', params: {id: id}},
|
||||
'MySharedItems': {name: 'Files', params: {id: id}},
|
||||
'Trash': {name: 'Trash', params: {id: id}},
|
||||
'Files': {name: 'Files', params: {id: id}},
|
||||
}
|
||||
|
||||
this.$router.push(locations[this.$router.currentRoute.name])
|
||||
}
|
||||
|
||||
Vue.prototype.$isThisRoute = function (route, locations) {
|
||||
|
||||
return locations.includes(route.name)
|
||||
|
||||
Reference in New Issue
Block a user