desktop toolbar refactoring

This commit is contained in:
Peter Papp
2021-08-31 15:14:55 +02:00
parent c916916a4d
commit d1cb1a378b
8 changed files with 124 additions and 103 deletions

View File

@@ -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 = {