Skip to content

Commit

Permalink
Merge pull request #3984 from nextcloud/feat/noid/allow-icon-url-for-…
Browse files Browse the repository at this point in the history
…autocomplete-results

feat(NcRichContenteditable): Allow to pass in an icon URL
  • Loading branch information
marcoambrosini authored Apr 19, 2023
2 parents 8445f07 + 85213af commit ab4bc00
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/NcRichContenteditable/NcAutoCompleteResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ export default {
type: String,
required: true,
},
iconUrl: {
type: String,
default: null,
},
source: {
type: String,
required: true,
Expand All @@ -78,6 +82,10 @@ export default {
},
computed: {
avatarUrl() {
if (this.iconUrl) {
return this.iconUrl
}
return this.id && this.source === 'users'
? this.getAvatarUrl(this.id, 44)
: null
Expand Down

0 comments on commit ab4bc00

Please sign in to comment.