Merge pull request #24864 from nextcloud/bugfix/noid/always-show-external-share
Also include external share results in recommendations
This commit is contained in:
commit
5e3fe1cbfe
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -294,6 +294,8 @@ export default {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const externalResults = this.externalResults.filter(result => !result.condition || result.condition(this))
|
||||||
|
|
||||||
const exact = request.data.ocs.data.exact
|
const exact = request.data.ocs.data.exact
|
||||||
|
|
||||||
// flatten array of arrays
|
// flatten array of arrays
|
||||||
|
@ -302,6 +304,7 @@ export default {
|
||||||
// remove invalid data and format to user-select layout
|
// remove invalid data and format to user-select layout
|
||||||
this.recommendations = this.filterOutExistingShares(rawRecommendations)
|
this.recommendations = this.filterOutExistingShares(rawRecommendations)
|
||||||
.map(share => this.formatForMultiselect(share))
|
.map(share => this.formatForMultiselect(share))
|
||||||
|
.concat(externalResults)
|
||||||
|
|
||||||
this.loading = false
|
this.loading = false
|
||||||
console.info('recommendations', this.recommendations)
|
console.info('recommendations', this.recommendations)
|
||||||
|
|
Loading…
Reference in New Issue