Skip to content

Commit

Permalink
Cleanup and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Heinrich committed Sep 27, 2023
1 parent 9911167 commit 099fe36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 217 deletions.
12 changes: 5 additions & 7 deletions src/components/Editor/Invitees/InviteesListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
{{ $t('calendar', 'Non-participant') }}
</ActionRadio>

<ActionButton @click="removeAttendee(attendee)">
<ActionButton @click="removeAttendee">
<template #icon>
<Delete :size="20" decorative />
</template>
Expand All @@ -90,13 +90,13 @@
<div v-if="hasMembers"
class="member-list"
:class="{ 'member-list--open':memberListExpaneded }">
<InviteesMemberItem v-for="member in attendee.members"
<InviteesListItem v-for="member in attendee.members"
:key="member.email"
:attendee="member"
:is-read-only="isReadOnly"
:organizer-display-name="organizerDisplayName"
:members="member.members"
@remove-attendee="removeAttendee(member)" />
@remove-attendee="removeAttendee" />
</div>
</div>
</template>
Expand All @@ -113,7 +113,6 @@ import {
import { removeMailtoPrefix } from '../../../utils/attendee.js'
import ChevronDown from 'vue-material-design-icons/ChevronDown.vue'
import ChevronUp from 'vue-material-design-icons/ChevronUp.vue'
import InviteesMemberItem from './InviteesMemberItem.vue'

import Delete from 'vue-material-design-icons/Delete.vue'

Expand All @@ -129,7 +128,6 @@ export default {
NcButton,
ChevronDown,
ChevronUp,
InviteesMemberItem,
},
props: {
attendee: {
Expand Down Expand Up @@ -233,8 +231,8 @@ export default {
/**
* Removes an attendee from the event
*/
removeAttendee(attendee) {
this.$emit('remove-attendee', attendee)
removeAttendee() {
this.$emit('remove-attendee', this.attendee)
},
/**
* Toggle member list if attendee is a group
Expand Down
210 changes: 0 additions & 210 deletions src/components/Editor/Invitees/InviteesMemberItem.vue

This file was deleted.

0 comments on commit 099fe36

Please sign in to comment.