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 21, 2024
1 parent 7e4fb9b commit 66a921e
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)"

Check failure on line 23 in src/components/Editor/Invitees/OrganizerListItem.vue

View workflow job for this annotation

GitHub Actions / NPM lint

'v-show' should be on a new line
: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,

Check warning on line 49 in src/components/Editor/Invitees/OrganizerListItem.vue

View check run for this annotation

Codecov / codecov/patch

src/components/Editor/Invitees/OrganizerListItem.vue#L49

Added line #L49 was not covered by tests
},
props: {
organizer: {
Expand Down

0 comments on commit 66a921e

Please sign in to comment.