Skip to content

Commit

Permalink
Merge pull request #24864 from nextcloud/bugfix/noid/always-show-exte…
Browse files Browse the repository at this point in the history
…rnal-share

Also include external share results in recommendations
  • Loading branch information
juliusknorr authored Dec 30, 2020
2 parents 40832ac + 9f5ada5 commit 5e3fe1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/files_sharing/js/dist/files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/files_sharing/js/dist/files_sharing_tab.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions apps/files_sharing/src/components/SharingInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ export default {
return
}

const externalResults = this.externalResults.filter(result => !result.condition || result.condition(this))

const exact = request.data.ocs.data.exact

// flatten array of arrays
Expand All @@ -302,6 +304,7 @@ export default {
// remove invalid data and format to user-select layout
this.recommendations = this.filterOutExistingShares(rawRecommendations)
.map(share => this.formatForMultiselect(share))
.concat(externalResults)

this.loading = false
console.info('recommendations', this.recommendations)
Expand Down

0 comments on commit 5e3fe1c

Please sign in to comment.