reorganization of FileView

This commit is contained in:
Peter Papp
2021-08-20 09:04:56 +02:00
parent e13a2cd18f
commit c57a244ae1
13 changed files with 528 additions and 794 deletions
@@ -17,9 +17,9 @@
<ToolbarWrapper>
<!--Search bar-->
<!-- <ToolbarGroup style="margin-left: 0">
<ToolbarGroup v-if="false" style="margin-left: 0">
<SearchBar />
</ToolbarGroup>-->
</ToolbarGroup>
<!--Creating controls-->
<ToolbarGroup v-if="$checkPermission(['master', 'editor'])">
@@ -223,7 +223,8 @@ 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.$store.dispatch('getFolder', [{folder: this.item, back: false, init: false}])
this.$router.push({name: 'Files', params: {id: this.item.id}})
}
} else {
@@ -260,7 +261,8 @@ 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.$store.dispatch('getFolder', [{folder: this.item, back: false, init: false}])
this.$router.push({name: 'Files', params: {id: this.item.id}})
}
}
},
@@ -72,8 +72,11 @@ export default {
// Update sorting state in vuex
this.$store.commit('UPDATE_SORTING')
// Get data using the application location
this.$getDataByLocation()
// Get dara of user with favourites tree
this.$store.dispatch('getAppData')
// Get data of Navigator tree
this.$store.dispatch('getFolderTree')
},
changePreview(previewType) {
this.$store.dispatch('changePreviewType', previewType)