mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 19:10:40 +00:00
add sorting for every getData and navigator, Favourites need to be fixed
This commit is contained in:
Vendored
+21
-3
@@ -308,11 +308,29 @@ const Helpers = {
|
||||
return validated
|
||||
}
|
||||
Vue.prototype.$getDataByLocation = function() {
|
||||
let previousFolder = store.getters.currentFolder
|
||||
let folder = store.getters.currentFolder
|
||||
|
||||
if(this.$isThisLocation('base')){
|
||||
this.$store.dispatch('getFolder', [{folder: previousFolder, back: false, init: false}])
|
||||
if(this.$isThisLocation('base') || this.$isThisLocation('public')){
|
||||
this.$store.dispatch('getFolder', [{ folder: folder, back: true, init: false, sorting:true}])
|
||||
}
|
||||
|
||||
if(this.$isThisLocation('latest')) {
|
||||
this.$store.dispatch('getLatest')
|
||||
}
|
||||
|
||||
if(this.$isThisLocation('shared')) {
|
||||
this.$store.dispatch('getShared')
|
||||
}
|
||||
|
||||
if(this.$isThisLocation('participant_uploads')) {
|
||||
this.$store.dispatch('getParticipantUploads')
|
||||
}
|
||||
|
||||
if(this.$isThisLocation('trash-root')) {
|
||||
this.$store.dispatch('getTrash')
|
||||
}
|
||||
|
||||
this.$store.dispatch('getAppData')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user