diff options
Diffstat (limited to 'src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue')
-rw-r--r-- | src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue index b4ea4433d..8c5fc49c7 100644 --- a/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue +++ b/src/components/RightSidebar/Participants/ParticipantsList/Participant/Participant.vue @@ -143,7 +143,7 @@ </ActionButton> <!-- Permissions --> - <template v-if="selfIsModerator && !isModerator"> + <template v-if="showPermissionsOptions"> <ActionSeparator /> <ActionButton v-if="hasNonDefaultPermissions" :close-after-click="true" @@ -527,6 +527,14 @@ export default { return this.participantTypeIsModerator(this.participantType) }, + showPermissionsOptions() { + return this.selfIsModerator + && !this.isModerator + && (this.participant.actorType === ATTENDEE.ACTOR_TYPE.USERS + || this.participant.actorType === ATTENDEE.ACTOR_TYPE.GUESTS + || this.participant.actorType === ATTENDEE.ACTOR_TYPE.EMAILS) + }, + showModeratorLabel() { return this.isModerator && [CONVERSATION.TYPE.ONE_TO_ONE, CONVERSATION.TYPE.CHANGELOG].indexOf(this.conversation.type) === -1 |