Skip to content

Commit

Permalink
fix: Reuse NcAutoCompleteResult, remove code duplication
Browse files Browse the repository at this point in the history
Signed-off-by: Josh <[email protected]>
  • Loading branch information
joshtrichards authored and juliusknorr committed Aug 14, 2024
1 parent fc847b8 commit 2dfc8b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Suggestion/Mention/MentionList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<template>
<SuggestionListWrapper ref="suggestionList" :command="command" :items="items">
<template #default="{ item, active}">
<AutoCompleteResult :id="item.id"
<NcAutoCompleteResult :id="item.id"
:label="item.label"
icon="icon-user"
source="users"
Expand All @@ -19,12 +19,13 @@
</template>

<script>
import AutoCompleteResult from './AutoCompleteResult.vue'
import { NcAutoCompleteResult } from '@nextcloud/vue'
import SuggestionListWrapper from '../SuggestionListWrapper.vue'
export default {
components: {
AutoCompleteResult,
NcAutoCompleteResult,
SuggestionListWrapper,
},
props: {
Expand Down

0 comments on commit 2dfc8b9

Please sign in to comment.