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 50b1ed7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Router from 'vue-router'
import { useTask } from 'vue-concurrency'
import { isLocationSharesActive } from '../../router'
import { aggregateResourceShares } from '../../helpers/resources'
import { ShareTypes } from '../../helpers/share'

export class FolderLoaderSharedWithOthers implements FolderLoader {
public isEnabled(router: Router): boolean {
Expand All @@ -18,9 +19,14 @@ export class FolderLoaderSharedWithOthers implements FolderLoader {
return useTask(function* (signal1, signal2) {
store.commit('Files/CLEAR_CURRENT_FILES_LIST')

let shareTypes = ShareTypes.authenticated
.filter((type) => type.value !== ShareTypes.space.value)
.map((share) => share.value)
.join(',')

let resources = yield client.requests.ocs({
service: 'apps/files_sharing',
action: '/api/v1/shares?format=json&reshares=true&include_tags=false',
action: `/api/v1/shares?format=json&reshares=true&include_tags=false&share_types=${shareTypes}`,
method: 'GET'
})

Expand Down

0 comments on commit 50b1ed7

Please sign in to comment.