Skip to content

Commit

Permalink
Remove links from SharedWithOthers
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Mar 17, 2022
1 parent 8af8971 commit dc9cbd9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions packages/web-app-files/src/views/shares/SharedWithOthers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
:class="{ 'files-table-squashed': !sidebarClosed }"
:are-thumbnails-displayed="displayThumbnails"
:are-paths-displayed="true"
:resources="paginatedResources"
:resources="filteredPaginatedResources"
:target-route="resourceTargetLocation"
:header-position="fileListHeaderY"
:sort-by="sortBy"
Expand All @@ -37,7 +37,7 @@
<template #footer>
<pagination :pages="paginationPages" :current-page="paginationPage" />
<list-info
v-if="paginatedResources.length > 0"
v-if="filteredPaginatedResources.length > 0"
class="oc-width-1-1 oc-my-s"
:files="totalFilesCount.files"
:folders="totalFilesCount.folders"
Expand Down Expand Up @@ -98,8 +98,16 @@ export default {
}
},
filteredPaginatedResources() {
return this.paginatedResources.filter((resource) => {
return resource.sharedWith.some((share) => {
return share.shareType !== 3
})
})
},
isEmpty() {
return this.paginatedResources.length < 1
return this.filteredPaginatedResources.length < 1
},
displayThumbnails() {
Expand Down

0 comments on commit dc9cbd9

Please sign in to comment.