Skip to content

Commit

Permalink
Fix missing information on share sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Sep 21, 2022
1 parent 306295b commit dacbb52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ import { SideBarEventTopics } from '../../../composables/sideBar'
export default defineComponent({
name: 'SpaceDetails',
components: { SpaceQuota },
inject: ['displayedItem'],
setup() {
const store = useStore()
const accessToken = useAccessToken({ store })
Expand Down Expand Up @@ -121,11 +120,11 @@ export default defineComponent({
return { loadImageTask, spaceImage }
},
computed: {
...mapGetters('Files', ['currentFileOutgoingLinks']),
...mapGetters('Files', ['currentFileOutgoingLinks', 'highlightedFile']),
...mapGetters('runtime/spaces', ['spaceMembers']),
...mapGetters(['user']),
space() {
return this.displayedItem.value
return this.highlightedFile
},
hasShares() {
return this.hasMemberShares || this.hasLinkShares
Expand Down
14 changes: 0 additions & 14 deletions packages/web-app-files/src/components/SideBar/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,6 @@ export default defineComponent({
}
return !pathSegments.length
},
highlightedFileThumbnail() {
return this.highlightedFile?.thumbnail
},
highlightedFileFavorite() {
return this.highlightedFile?.starred
},
highlightedFileIsSpace() {
return this.highlightedFile?.type === 'space'
}
Expand Down Expand Up @@ -234,14 +228,6 @@ export default defineComponent({
this.fetchFileInfo(loadShares)
},
deep: true
},
highlightedFileThumbnail(thumbnail) {
this.$set(this.selectedFile, 'thumbnail', thumbnail)
},
highlightedFileFavorite(starred) {
this.$set(this.selectedFile, 'starred', starred)
}
},
async created() {
Expand Down

0 comments on commit dacbb52

Please sign in to comment.