diff --git a/src/components/AppNavigation/Settings/SettingsAddressbookShare.vue b/src/components/AppNavigation/Settings/SettingsAddressbookShare.vue index 05b248936..da2765600 100644 --- a/src/components/AppNavigation/Settings/SettingsAddressbookShare.vue +++ b/src/components/AppNavigation/Settings/SettingsAddressbookShare.vue @@ -31,6 +31,7 @@ :placeholder="placeholder" :class="{ 'showContent': inputGiven, 'icon-loading': isLoading }" :user-select="true" + :filter-by="filterResults" open-direction="bottom" track-by="user" label="displayName" @@ -107,6 +108,18 @@ export default { shareAddressbook({ user, displayName, uri, isGroup }) { this.$store.dispatch('shareAddressbook', { addressbook: this.addressbook, user, displayName, uri, isGroup }) }, + /** + * Function to filter results in NcSelect + * + * @param {object} option + * @param {string} label + * @param {string} search + */ + /* eslint-disable @typescript-eslint/no-unused-vars */ + filterResults(option, label, search) { + return true + }, + /* eslint-enable @typescript-eslint/no-unused-vars */ /** * Use the cdav client call to find matches to the query from the existing Users & Groups