Skip to content

Commit

Permalink
fixup! fixup! [wip] feat(ban): ban participant from RightSidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
DorraJaouad committed Jun 3, 2024
1 parent 18eb5cd commit 546bd3b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/RightSidebar/Participants/Participant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
</template>

<!-- Permissions -->
<template v-if="showPermissionsOptions">
<template v-if="isModeratableParticipant">
<NcActionSeparator />
<NcActionButton v-if="hasNonDefaultPermissions"
key="reset-permissions"
Expand Down Expand Up @@ -287,8 +287,8 @@
</template>

<!-- Remove -->
<NcActionSeparator v-if="canBeModerated && showPermissionsOptions" />
<NcActionButton v-if="canBeModerated && supportBanV1 && showPermissionsOptions"
<NcActionSeparator v-if="isModeratableParticipant" />
<NcActionButton v-if="supportBanV1 && isModeratableParticipant"
key="ban-participant"
class="critical"
close-after-click
Expand Down Expand Up @@ -801,7 +801,7 @@ export default {
return this.participantTypeIsModerator(this.participantType)
},

showPermissionsOptions() {
isModeratableParticipant() {
return this.canBeModerated
&& !this.isModerator
&& (this.participant.actorType === ATTENDEE.ACTOR_TYPE.USERS
Expand Down Expand Up @@ -993,10 +993,10 @@ export default {
this.internalNote = ''
this.isBanDialogOpen = false
showSuccess(t('spreed', 'Participant {displayName} is banned successfully', { displayName: this.computedName }))
} catch(error) {
showError(t('spreed', 'Could not ban participant {displayName}', { displayName: this.computedName }))
} catch (error) {
showError(t('spreed', 'Could not ban participant {displayName}', { displayName: this.computedName }))
}

},

async removeParticipant() {
Expand Down

0 comments on commit 546bd3b

Please sign in to comment.