diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-12-28 17:15:15 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-30 10:33:52 +0100 |
commit | 9f5ada5d458429f18d891bfd1e4621330163de65 (patch) | |
tree | 5721e68f70fd07dd23d3a66f06410c1d1edf2a77 /apps/files_sharing/src/components/SharingInput.vue | |
parent | c62d73641a03ec575aa4b216898d7ae9d7170ee0 (diff) | |
download | nextcloud-server-9f5ada5d458429f18d891bfd1e4621330163de65.tar.gz nextcloud-server-9f5ada5d458429f18d891bfd1e4621330163de65.zip |
Also include external share results in recommendations
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/src/components/SharingInput.vue')
-rw-r--r-- | apps/files_sharing/src/components/SharingInput.vue | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue index 4222a5589e6..9fa9e47e287 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -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 @@ -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) |