mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
desktop toolbar refactoring
This commit is contained in:
15
resources/js/helpers/functionHelpers.js
vendored
15
resources/js/helpers/functionHelpers.js
vendored
@@ -201,6 +201,21 @@ const FunctionHelpers = {
|
||||
anchor.click()
|
||||
}
|
||||
|
||||
Vue.prototype.$getCurrentLocationName = function () {
|
||||
if (store.getters.currentFolder) {
|
||||
return store.getters.currentFolder.data.attributes.name
|
||||
} else {
|
||||
return {
|
||||
'RecentUploads': this.$t('Recent'),
|
||||
'MySharedItems': this.$t('Shared'),
|
||||
'Trash': this.$t('Trash'),
|
||||
'Public': this.$t('Files'),
|
||||
'Files': this.$t('Files'),
|
||||
'TeamFolders': this.$t('Team Folders'),
|
||||
}[this.$route.name]
|
||||
}
|
||||
}
|
||||
|
||||
Vue.prototype.$goToFileView = function (id) {
|
||||
|
||||
let locations = {
|
||||
|
||||
Reference in New Issue
Block a user