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
2 changes: 1 addition & 1 deletion src/components/Questions/Question.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</h3>
<div
v-if="!readOnly && !questionValid"
v-tooltip.auto="warningInvalid"
:title="warningInvalid"
class="question__header__title__warning"
tabindex="0">
<IconAlertCircleOutline :size="20" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/SidebarTabs/SettingsSidebarTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{{ t('forms', 'Store responses anonymously') }}
</NcCheckboxRadioSwitch>
<NcCheckboxRadioSwitch
v-tooltip="disableSubmitMultipleExplanation"
:title="disableSubmitMultipleExplanation"
:checked="submitMultiple"
:disabled="disableSubmitMultiple || formArchived || locked"
type="switch"
Expand Down
13 changes: 6 additions & 7 deletions src/components/SidebarTabs/SharingSearchDiv.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,34 @@

<template>
<div>
<NcSelect
<NcSelectUsers
:clear-search-on-select="false"
:close-on-select="false"
keep-open
:loading="showLoadingCircle"
:disabled="locked"
:get-option-key="(option) => option.key"
:options="options"
:placeholder="t('forms', 'Search for user, group or team …')"
user-select
:filter-by="() => true"
label="displayName"
:aria-label-combobox="t('forms', 'Search for user, group or team …')"
@search="asyncSearch"
@input="addShare">
@update:model-value="addShare">
<template #no-options>
{{ noResultText }}
</template>
</NcSelect>
</NcSelectUsers>
</div>
</template>

<script>
import NcSelect from '@nextcloud/vue/components/NcSelect'
import NcSelectUsers from '@nextcloud/vue/components/NcSelectUsers'

import UserSearchMixin from '../../mixins/UserSearchMixin.js'

export default {
components: {
NcSelect,
NcSelectUsers,
},

mixins: [UserSearchMixin],
Expand Down
15 changes: 6 additions & 9 deletions src/components/SidebarTabs/TransferOwnership.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,20 @@
)
" />
<!-- eslint-enable vue/no-v-html -->
<NcSelect
<NcSelectUsers
v-model="selected"
class="modal-content__select"
:reset-focus-on-options-change="false"
clear-search-on-select
close-on-select
:reset-on-options-change="false"
:loading="loading"
:get-option-key="(option) => option.key"
:options="options"
:placeholder="t('forms', 'Search for a user')"
user-select
label="displayName"
@search="(query) => asyncSearch(query, true)">
@search="asyncSearch">
<template #no-options>
{{ noResultText }}
</template>
</NcSelect>
</NcSelectUsers>

<br />

Expand Down Expand Up @@ -103,7 +100,7 @@ import axios from '@nextcloud/axios'
import NcButton from '@nextcloud/vue/components/NcButton'
import NcDialog from '@nextcloud/vue/components/NcDialog'
import NcTextField from '@nextcloud/vue/components/NcTextField'
import NcSelect from '@nextcloud/vue/components/NcSelect'
import NcSelectUsers from '@nextcloud/vue/components/NcSelectUsers'
import UserSearchMixin from '../../mixins/UserSearchMixin.js'
import logger from '../../utils/Logger.js'

Expand All @@ -112,7 +109,7 @@ export default {
NcButton,
NcDialog,
NcTextField,
NcSelect,
NcSelectUsers,
},
mixins: [UserSearchMixin],

Expand Down
2 changes: 1 addition & 1 deletion src/mixins/UserSearchMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default {
if (this.isValidQuery) {
// already set loading to have proper ux feedback during debounce
this.loading = true
await this.debounceGetSuggestions(query)
this.debounceGetSuggestions(query)
}
},

Expand Down
Loading