- dark mode fixes

- sort reloading
This commit is contained in:
Čarodej
2021-10-29 17:54:34 +02:00
parent 57506fc34f
commit 1e515ede88
5 changed files with 48 additions and 10 deletions

View File

@@ -229,6 +229,20 @@ const FunctionHelpers = {
}[this.$route.name]
}
Vue.prototype.$getDataByLocation = function () {
let routes = {
'Files': ['getFolder', this.$route.params.id],
'RecentUploads': ['getRecentUploads'],
'MySharedItems': ['getMySharedItems'],
'Trash': ['getTrash', this.$route.params.id],
'TeamFolders': ['getTeamFolder', this.$route.params.id],
'SharedWithMe': ['getSharedWithMeFolder', this.$route.params.id],
}
this.$store.dispatch(...routes[this.$router.currentRoute.name])
}
Vue.prototype.$goToFileView = function (id) {
let locations = {