File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 {{ t('forms', 'Store responses anonymously') }}
1515 </NcCheckboxRadioSwitch >
1616 <NcCheckboxRadioSwitch
17- v-tooltip =" disableSubmitMultipleExplanation"
17+ :title =" disableSubmitMultipleExplanation"
1818 :checked =" submitMultiple"
1919 :disabled =" disableSubmitMultiple || formArchived"
2020 type =" switch"
Original file line number Diff line number Diff line change 55
66<template >
77 <div >
8- <NcSelect
8+ <NcSelectUsers
99 :clear-search-on-select =" false"
10- :close-on-select = " false "
10+ keep-open
1111 :loading =" showLoadingCircle"
1212 :get-option-key =" (option) => option.key"
1313 :options =" options"
1414 :placeholder =" t('forms', 'Search for user, group or team …')"
15- user-select
1615 :filter-by =" () => true"
1716 label =" displayName"
1817 :aria-label-combobox =" t('forms', 'Search for user, group or team …')"
2120 <template #no-options >
2221 {{ noResultText }}
2322 </template >
24- </NcSelect >
23+ </NcSelectUsers >
2524 </div >
2625</template >
2726
2827<script >
29- import NcSelect from ' @nextcloud/vue/components/NcSelect '
28+ import NcSelectUsers from ' @nextcloud/vue/components/NcSelectUsers '
3029
3130import UserSearchMixin from ' ../../mixins/UserSearchMixin.js'
3231
3332export default {
3433 components: {
35- NcSelect ,
34+ NcSelectUsers ,
3635 },
3736
3837 mixins: [UserSearchMixin],
Original file line number Diff line number Diff line change 3737 )
3838 " />
3939 <!-- eslint-enable vue/no-v-html -->
40- <NcSelect
40+ <NcSelectUsers
4141 v-model =" selected"
4242 class =" modal-content__select"
43- :reset-focus-on-options-change =" false"
44- clear-search-on-select
45- close-on-select
43+ :reset-on-options-change =" false"
4644 :loading =" loading"
4745 :get-option-key =" (option) => option.key"
4846 :options =" options"
4947 :placeholder =" t('forms', 'Search for a user')"
50- user-select
5148 label =" displayName"
52- @search =" (query) => asyncSearch(query, true) " >
49+ @search =" asyncSearch" >
5350 <template #no-options >
5451 {{ noResultText }}
5552 </template >
56- </NcSelect >
53+ </NcSelectUsers >
5754
5855 <br />
5956
@@ -102,7 +99,7 @@ import axios from '@nextcloud/axios'
10299import NcButton from ' @nextcloud/vue/components/NcButton'
103100import NcDialog from ' @nextcloud/vue/components/NcDialog'
104101import NcTextField from ' @nextcloud/vue/components/NcTextField'
105- import NcSelect from ' @nextcloud/vue/components/NcSelect '
102+ import NcSelectUsers from ' @nextcloud/vue/components/NcSelectUsers '
106103import UserSearchMixin from ' ../../mixins/UserSearchMixin.js'
107104import logger from ' ../../utils/Logger.js'
108105
@@ -111,7 +108,7 @@ export default {
111108 NcButton,
112109 NcDialog,
113110 NcTextField,
114- NcSelect ,
111+ NcSelectUsers ,
115112 },
116113 mixins: [UserSearchMixin],
117114
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export default {
6565 if ( this . isValidQuery ) {
6666 // already set loading to have proper ux feedback during debounce
6767 this . loading = true
68- await this . debounceGetSuggestions ( query )
68+ this . debounceGetSuggestions ( query )
6969 }
7070 } ,
7171
You can’t perform that action at this time.
0 commit comments