mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
- added recent uploads
- added my shared items - added trash
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
<MobileToolbar />
|
||||
|
||||
<!--Mobile Actions-->
|
||||
<FileActionsMobile />
|
||||
<FileActionsMobile>
|
||||
<slot name="file-actions-mobile"></slot>
|
||||
</FileActionsMobile>
|
||||
|
||||
<!--Item previews list-->
|
||||
<div v-if="isList" class="file-list-wrapper">
|
||||
|
||||
@@ -35,24 +35,17 @@ export default {
|
||||
]),
|
||||
},
|
||||
methods: {
|
||||
flushBrowseHistory() {
|
||||
this.$store.commit('FLUSH_FOLDER_HISTORY')
|
||||
},
|
||||
goToFiles() {
|
||||
this.$store.dispatch('getFolder', [{folder: this.homeDirectory, back: false, init: true}])
|
||||
this.flushBrowseHistory()
|
||||
},
|
||||
goToLatest() {
|
||||
this.$store.dispatch('getLatest')
|
||||
this.flushBrowseHistory()
|
||||
},
|
||||
goToTrash() {
|
||||
this.$store.dispatch('getTrash')
|
||||
this.flushBrowseHistory()
|
||||
},
|
||||
goToShared() {
|
||||
this.$store.dispatch('getShared', [{back: false, init: false}])
|
||||
this.flushBrowseHistory()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -223,7 +223,6 @@ export default {
|
||||
if (this.$isThisLocation('public')) {
|
||||
this.$store.dispatch('browseShared', [{folder: this.item, back: false, init: false}])
|
||||
} else {
|
||||
//this.$store.dispatch('getFolder', [{folder: this.item, back: false, init: false}])
|
||||
this.$router.push({name: 'Files', params: {id: this.item.id}})
|
||||
}
|
||||
} else {
|
||||
@@ -261,8 +260,14 @@ export default {
|
||||
if (this.$isThisLocation('public')) {
|
||||
this.$store.dispatch('browseShared', [{folder: this.item, back: false, init: false}])
|
||||
} else {
|
||||
//this.$store.dispatch('getFolder', [{folder: this.item, back: false, init: false}])
|
||||
this.$router.push({name: 'Files', params: {id: this.item.id}})
|
||||
let route = this.$router.currentRoute.name
|
||||
|
||||
if (route === 'Files')
|
||||
this.$router.push({name: 'Files', params: {id: this.item.id}})
|
||||
if (route === 'Trash')
|
||||
this.$router.push({name: 'Trash', params: {id: this.item.id}})
|
||||
else
|
||||
this.$router.push({name: 'Files', params: {id: this.item.id}})
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user