- added recent uploads

- added my shared items
- added trash
This commit is contained in:
Peter Papp
2021-08-20 11:08:50 +02:00
parent 99e9c0086e
commit 15fba236d7
15 changed files with 459 additions and 116 deletions

View File

@@ -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">

View File

@@ -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()
}
}
}

View File

@@ -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}})
}
}
},