summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/components/SharingInput.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/components/SharingInput.vue')
-rw-r--r--apps/files_sharing/src/components/SharingInput.vue10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue
index c5ed27477b6..8b740c1bac3 100644
--- a/apps/files_sharing/src/components/SharingInput.vue
+++ b/apps/files_sharing/src/components/SharingInput.vue
@@ -24,7 +24,6 @@
<div class="sharing-search">
<label for="sharing-search-input">{{ t('files_sharing', 'Search for share recipients') }}</label>
<NcSelect ref="select"
- v-model="value"
input-id="sharing-search-input"
class="sharing-search__input"
:disabled="!canReshare"
@@ -34,9 +33,10 @@
:clear-search-on-blur="() => false"
:user-select="true"
:options="options"
+ v-model="value"
@open="handleOpen"
@search="asyncFind"
- @option:selected="openSharingDetails">
+ @option:selected="addShare">
<template #no-options="{ search }">
{{ search ? noResultText : t('files_sharing', 'No recommendations. Start typing.') }}
</template>
@@ -57,7 +57,6 @@ import GeneratePassword from '../utils/GeneratePassword.js'
import Share from '../models/Share.js'
import ShareRequests from '../mixins/ShareRequests.js'
import ShareTypes from '../mixins/ShareTypes.js'
-import ShareDetails from '../mixins/ShareDetails.js'
export default {
name: 'SharingInput',
@@ -66,7 +65,7 @@ export default {
NcSelect,
},
- mixins: [ShareTypes, ShareRequests, ShareDetails],
+ mixins: [ShareTypes, ShareRequests],
props: {
shares: {
@@ -177,7 +176,7 @@ export default {
* Get suggestions
*
* @param {string} search the search query
- * @param {boolean} [lookup] search on lookup server
+ * @param {boolean} [lookup=false] search on lookup server
*/
async getSuggestions(search, lookup = false) {
this.loading = true
@@ -453,6 +452,7 @@ export default {
}
return {
+ id: `${result.value.shareType}-${result.value.shareWith}`,
shareWith: result.value.shareWith,
shareType: result.value.shareType,
user: result.uuid || result.value.shareWith,