Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Heinrich committed Oct 4, 2023
1 parent 8394e98 commit 0fc47e3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
3 changes: 2 additions & 1 deletion src/components/Editor/AvatarParticipationStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
<AccountMultiple :size="28" />
</template>
</Avatar>
<Avatar v-else :disable-tooltip="true"
<Avatar v-else
:disable-tooltip="true"
:user="commonName"
:display-name="commonName"
:is-no-user="true" />
Expand Down
15 changes: 8 additions & 7 deletions src/components/Editor/Invitees/InviteesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ export default {
return this.calendarObjectInstance.attendees.filter(attendee => {
// Assign members to group type
attendee.members = [];
attendee.members = []
if (attendee.attendeeProperty.userType === 'GROUP') {
let group = attendee
const group = attendee
group.members = this.calendarObjectInstance.attendees.filter(attendee => {
return group.uri === attendee.member
})
Expand All @@ -159,15 +159,16 @@ export default {
return this.invitees
.filter(attendee => {
// Filter attendees which are part of an invited group
let isMemberOfGroup = false
if (attendee.member) {
var isMemberOfGroup = this.groups.some(function(group) {
return attendee.member.includes(group.uri) &&
attendee.attendeeProperty.userType === 'INDIVIDUAL'
isMemberOfGroup = this.groups.some(function(group) {
return attendee.member.includes(group.uri)
&& attendee.attendeeProperty.userType === 'INDIVIDUAL'
})
}
return attendee.uri !== this.calendarObjectInstance.organizer.uri &&
!isMemberOfGroup
return attendee.uri !== this.calendarObjectInstance.organizer.uri
&& !isMemberOfGroup
})
},
isOrganizer() {
Expand Down
18 changes: 10 additions & 8 deletions src/components/Editor/Invitees/InviteesListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<span v-if="hasMembers"
class="invitees-list-item__member-count">
({{ $n('calendar', '%n member', '%n members', attendee.members.length) }})
</span>
</span>
</div>
<div class="invitees-list-item__actions">
<NcButton v-if="hasMembers"
Expand Down Expand Up @@ -146,10 +146,10 @@ export default {
},
},
data() {
return {
memberListExpaneded: false,
members: this.attendee.members
};
return {
memberListExpaneded: false,
members: this.attendee.members,
};

Check failure on line 152 in src/components/Editor/Invitees/InviteesListItem.vue

View workflow job for this annotation

GitHub Actions / eslint

Extra semicolon
},

Check failure on line 153 in src/components/Editor/Invitees/InviteesListItem.vue

View workflow job for this annotation

GitHub Actions / eslint

Mixed spaces and tabs
computed: {
/**
Expand Down Expand Up @@ -209,7 +209,7 @@ export default {
},
hasMembers() {
return this.attendee.members.length > 0
}
},
},
methods: {
/**
Expand All @@ -233,6 +233,8 @@ export default {
},
/**
* Removes an attendee from the event
*

Check failure on line 236 in src/components/Editor/Invitees/InviteesListItem.vue

View workflow job for this annotation

GitHub Actions / eslint

Trailing spaces not allowed
* @param {object} attendee Attendee object to remove
*/
removeAttendee(attendee) {
// Remove attendee from participating group
Expand All @@ -246,9 +248,9 @@ export default {
/**
* Toggle member list if attendee is a group
*/
toggleMemberList(e) {
toggleMemberList() {
this.memberListExpaneded = !this.memberListExpaneded
}
},
},
}
</script>
Expand Down

0 comments on commit 0fc47e3

Please sign in to comment.