Skip to content

Commit

Permalink
feat: add organizer selection
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <[email protected]>
  • Loading branch information
SebastianKrupinski committed Aug 22, 2024
1 parent 4e51800 commit d23b39e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/components/Editor/Invitees/OrganizerListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,33 @@
</div>
<div class="invitees-list-item__actions">
<NcActions v-if="!isReadOnly && isSharedWithMe">
<NcActionRadio v-for="person in organizerSelection"
name="organizerSelector"
<NcActionButton v-for="person in organizerSelection" v-show="!selectedOrganizer(person.address)"
:key="person.address"
:checked="selectedOrganizer(person.address)"
@change="changeOrganizer(person)">
{{ person.label }}
</NcActionRadio>
@click="changeOrganizer(person)">
<template #icon>
<Crown :size="20" />
</template>
{{ $t('calendar', 'Promote {label} to Organizer', {label: person.label}) }}
</NcActionButton>
</NcActions>
</div>
</div>
</template>

<script>
import AvatarParticipationStatus from '../AvatarParticipationStatus.vue'
import Crown from 'vue-material-design-icons/Crown.vue'
import { removeMailtoPrefix } from '../../../utils/attendee.js'
import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'
import NcActionRadio from '@nextcloud/vue/dist/Components/NcActionRadio.js'
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'
export default {
name: 'OrganizerListItem',
components: {
AvatarParticipationStatus,
Crown,
NcActions,
NcActionRadio,
NcActionButton,
},
props: {
organizer: {
Expand Down

0 comments on commit d23b39e

Please sign in to comment.