Skip to content

Commit 8a17bc4

Browse files
artongebackportbot[bot]
authored andcommitted
fix(Settings): Only list users in transfer ownership
Signed-off-by: Louis Chmn <louis@chmn.me> [skip ci]
1 parent 3ffb2a7 commit 8a17bc4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/mixins/UserSearchMixin.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ export default {
7676
* Search for suggestions
7777
*
7878
* @param {string} query The search query to search for
79+
* @param {number[]|undefined} shareType The type of recipient to search.
7980
*/
80-
async asyncSearch(query) {
81+
async asyncSearch(query, shareType) {
8182
// save query to check if valid
8283
this.query = query.trim()
8384
if (this.isValidQuery) {
@@ -100,12 +101,13 @@ export default {
100101
* Get suggestions
101102
*
102103
* @param {string} query the search query
104+
* @param {number[]|undefined} shareType The type of recipient to search.
103105
*/
104-
async getSuggestions(query) {
106+
async getSuggestions(query, shareType) {
105107
this.loading = true
106108

107109
// Search for all used share-types, except public link.
108-
const shareType = this.SHARE_TYPES_USED.filter(
110+
shareType ??= this.SHARE_TYPES_USED.filter(
109111
(type) => type !== this.SHARE_TYPES.SHARE_TYPE_LINK,
110112
)
111113

0 commit comments

Comments
 (0)