Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Changelog


## v4.3.13 - 2025-06-25

[Full Changelog](https://github.com/nextcloud/forms/compare/v4.3.12...v4.3.13)
Expand Down
4 changes: 3 additions & 1 deletion src/components/SidebarTabs/TransferOwnership.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@
:placeholder="t('forms', 'Search for a user')"
:user-select="true"
label="displayName"
@search="(query) => asyncSearch(query, true)">
@search="
(query) => asyncSearch(query, [SHARE_TYPES.SHARE_TYPE_USER])
">
<template #no-options>
{{ noResultText }}
</template>
Expand Down
10 changes: 6 additions & 4 deletions src/mixins/UserSearchMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,15 @@ export default {
* Search for suggestions
*
* @param {string} query The search query to search for
* @param {number[]|undefined} shareType The type of recipient to search.
*/
async asyncSearch(query) {
async asyncSearch(query, shareType) {
// save query to check if valid
this.query = query.trim()
if (this.isValidQuery) {
// already set loading to have proper ux feedback during debounce
this.loading = true
await this.debounceGetSuggestions(query)
await this.debounceGetSuggestions(query, shareType)
}
},

Expand All @@ -100,12 +101,13 @@ export default {
* Get suggestions
*
* @param {string} query the search query
* @param {number[]|undefined} shareType The type of recipient to search.
*/
async getSuggestions(query) {
async getSuggestions(query, shareType) {
this.loading = true

// Search for all used share-types, except public link.
const shareType = this.SHARE_TYPES_USED.filter(
shareType ??= this.SHARE_TYPES_USED.filter(
(type) => type !== this.SHARE_TYPES.SHARE_TYPE_LINK,
)

Expand Down
Loading