Skip to content

Commit

Permalink
Merge pull request #6192 from nextcloud/jtr/fix/3142
Browse files Browse the repository at this point in the history
fix: Reuse NcAutoCompleteResult, remove code duplication
  • Loading branch information
mejo- authored Sep 4, 2024
2 parents 701c9b6 + bca8e93 commit 496c37e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 175 deletions.
172 changes: 0 additions & 172 deletions src/components/Suggestion/Mention/AutoCompleteResult.vue

This file was deleted.

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 496c37e

Please sign in to comment.