Skip to content

Commit

Permalink
calendar-ui: Add group icon to selection list
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Heinrich committed Aug 4, 2023
1 parent 6389061 commit f55edcc
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/components/Editor/Invitees/InviteesListSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@
:key="option.uid"
:user="option.avatar"
:display-name="option.dropdownName" />
<Avatar v-else
<Avatar v-else-if="option.type === 'group'">
<template #icon>
<AccountMultiple :size="20" />
</template>
</Avatar>
<Avatar v-if="!option.isUser && option.type !== 'group'"
:key="option.uid"
:url="option.avatar"
:display-name="option.dropdownName" />
Expand All @@ -70,12 +75,14 @@ import HttpClient from '@nextcloud/axios'
import debounce from 'debounce'
import { linkTo } from '@nextcloud/router'
import { randomId } from '../../../utils/randomId.js'
import AccountMultiple from 'vue-material-design-icons/AccountMultiple.vue'
export default {
name: 'InviteesListSearch',
components: {
Avatar,
Multiselect,
AccountMultiple,
},
props: {
alreadyInvitedEmails: {
Expand Down Expand Up @@ -257,10 +264,11 @@ export default {
calendarUserType: circle.calendarUserType,
email: circle.email,
language: circle.language,
isUser: circle.calendarUserType === 'INDIVIDUAL',
isUser: false,
avatar: circle.userId,
hasMultipleEMails: false,
dropdownName: circle.displayname || circle.email,
dropdownName: circle.displayname || circle.email,
type: 'group',
}
})
},
Expand Down

0 comments on commit f55edcc

Please sign in to comment.