Skip to content

Commit 64ca5d6

Browse files
committed
chore: adapt to nc-vue 8.26
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent 4e9389f commit 64ca5d6

4 files changed

Lines changed: 13 additions & 17 deletions

File tree

src/components/SidebarTabs/SettingsSidebarTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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"

src/components/SidebarTabs/SharingSearchDiv.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
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 …')"
@@ -21,18 +20,18 @@
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
3130
import UserSearchMixin from '../../mixins/UserSearchMixin.js'
3231
3332
export default {
3433
components: {
35-
NcSelect,
34+
NcSelectUsers,
3635
},
3736
3837
mixins: [UserSearchMixin],

src/components/SidebarTabs/TransferOwnership.vue

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,20 @@
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'
10299
import NcButton from '@nextcloud/vue/components/NcButton'
103100
import NcDialog from '@nextcloud/vue/components/NcDialog'
104101
import NcTextField from '@nextcloud/vue/components/NcTextField'
105-
import NcSelect from '@nextcloud/vue/components/NcSelect'
102+
import NcSelectUsers from '@nextcloud/vue/components/NcSelectUsers'
106103
import UserSearchMixin from '../../mixins/UserSearchMixin.js'
107104
import 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

src/mixins/UserSearchMixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)