-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove attendee from group after removal
- Loading branch information
Jonas Heinrich
committed
Sep 29, 2023
1 parent
2061abf
commit 2b4062a
Showing
2 changed files
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ | |
<div v-if="hasMembers" | ||
class="member-list" | ||
:class="{ 'member-list--open':memberListExpaneded }"> | ||
<InviteesListItem v-for="member in attendee.members" | ||
<InviteesListItem v-for="member in members" | ||
:key="member.email" | ||
:attendee="member" | ||
:is-read-only="isReadOnly" | ||
|
@@ -145,7 +145,8 @@ export default { | |
}, | ||
data() { | ||
return { | ||
memberListExpaneded: false | ||
memberListExpaneded: false, | ||
members: this.attendee.members | ||
}; | ||
}, | ||
computed: { | ||
|
@@ -232,14 +233,20 @@ export default { | |
* Removes an attendee from the event | ||
*/ | ||
removeAttendee(attendee) { | ||
// Remove attendee from participating group | ||
if (attendee.member) { | ||
this.members = this.members.filter( | ||
member => member.uri !== attendee.uri | ||
) | ||
} | ||
this.$emit('remove-attendee', attendee) | ||
}, | ||
/** | ||
Check warning on line 244 in src/components/Editor/Invitees/InviteesListItem.vue GitHub Actions / eslint
|
||
* Toggle member list if attendee is a group | ||
*/ | ||
toggleMemberList(e) { | ||
this.memberListExpaneded = !this.memberListExpaneded | ||
}, | ||
} | ||
}, | ||
} | ||
</script> | ||
|