diff options
Diffstat (limited to 'apps/files/src/components/TransferOwnershipDialogue.vue')
-rw-r--r-- | apps/files/src/components/TransferOwnershipDialogue.vue | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/apps/files/src/components/TransferOwnershipDialogue.vue b/apps/files/src/components/TransferOwnershipDialogue.vue index be554c9f4b1..1f645fe0228 100644 --- a/apps/files/src/components/TransferOwnershipDialogue.vue +++ b/apps/files/src/components/TransferOwnershipDialogue.vue @@ -37,22 +37,15 @@ <label for="targetUser"> <span>{{ t('files', 'New owner') }}</span> </label> - <NcMultiselect id="targetUser" + <NcSelect input-id="targetUser" v-model="selectedUser" :options="formatedUserSuggestions" :multiple="false" - :searchable="true" - :placeholder="t('files', 'Search for an account')" - :preselect-first="true" - :preserve-search="true" :loading="loadingUsers" - track-by="user" label="displayName" - :internal-search="false" - :clear-on-select="false" :user-select="true" class="middle-align" - @search-change="findUserDebounced" /> + @search="findUserDebounced" /> </p> <p> <input type="submit" @@ -70,7 +63,7 @@ import axios from '@nextcloud/axios' import debounce from 'debounce' import { generateOcsUrl } from '@nextcloud/router' import { getFilePickerBuilder, showSuccess } from '@nextcloud/dialogs' -import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect.js' +import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js' import Vue from 'vue' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' @@ -86,7 +79,7 @@ const picker = getFilePickerBuilder(t('files', 'Choose a file or folder to trans export default { name: 'TransferOwnershipDialogue', components: { - NcMultiselect, + NcSelect, NcButton, }, data() { |