diff options
author | Joas Schilling <coding@schilljs.com> | 2023-02-23 12:49:10 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-02-23 12:49:10 +0100 |
commit | 71cfd199c4c46dd74aec7b10ac8b63a16797bfa7 (patch) | |
tree | eae1a9e4a1b80c90111fdd6cdcae893f4581b7a7 /src/components/TopBar/CallButton.vue | |
parent | 6eaff2ac6df8e80d2fc0c3951251f9532ca41bab (diff) |
Fix button logic
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/components/TopBar/CallButton.vue')
-rw-r--r-- | src/components/TopBar/CallButton.vue | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/components/TopBar/CallButton.vue b/src/components/TopBar/CallButton.vue index cdd768983..5e4329d89 100644 --- a/src/components/TopBar/CallButton.vue +++ b/src/components/TopBar/CallButton.vue @@ -38,7 +38,7 @@ </template> {{ startCallLabel }} </NcButton> - <NcButton v-else-if="(showLeaveCallButton && !canEndForAll) && !isBreakoutRoom" + <NcButton v-else-if="showLeaveCallButton && !canEndForAll && !isBreakoutRoom" id="call_button" type="error" :disabled="loading" @@ -48,7 +48,7 @@ </template> {{ leaveCallLabel }} </NcButton> - <NcActions v-else-if="showLeaveCallButton && canEndForAll || isBreakoutRoom" + <NcActions v-else-if="showLeaveCallButton && (canEndForAll || isBreakoutRoom)" :disabled="loading" :menu-title="leaveCallCombinedLabel" type="error"> @@ -69,7 +69,7 @@ </template> {{ leaveCallLabel }} </NcActionButton> - <NcActionButton v-if="canEndForAll && !isBreakoutRoom" @click="leaveCall(true)"> + <NcActionButton v-if="canEndForAll" @click="leaveCall(true)"> <template #icon> <VideoBoxOff :size="20" /> </template> @@ -176,9 +176,10 @@ export default { }, canEndForAll() { - return this.participantType === PARTICIPANT.TYPE.OWNER - || this.participantType === PARTICIPANT.TYPE.MODERATOR - || this.participantType === PARTICIPANT.TYPE.GUEST_MODERATOR + return (this.participantType === PARTICIPANT.TYPE.OWNER + || this.participantType === PARTICIPANT.TYPE.MODERATOR + || this.participantType === PARTICIPANT.TYPE.GUEST_MODERATOR) + && !this.isBreakoutRoom }, hasCall() { |