Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to drop the arguments from the function instead of the eslint line

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
Expand Down