diff options
Diffstat (limited to 'src/components/CallView')
-rw-r--r-- | src/components/CallView/shared/LocalMediaControls.vue | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/CallView/shared/LocalMediaControls.vue b/src/components/CallView/shared/LocalMediaControls.vue index d3ae048b2..4d9ac897c 100644 --- a/src/components/CallView/shared/LocalMediaControls.vue +++ b/src/components/CallView/shared/LocalMediaControls.vue @@ -151,12 +151,12 @@ </NcActionButton> </NcActions> <NcButton v-shortkey.once="disableKeyboardShortcuts ? null : ['r']" - v-tooltip="disableKeyboardShortcuts ? t('spreed', 'Lower hand') : t('spreed', 'Lower hand (R)')" + v-tooltip="lowerHandAriaLabel" + :aria-label="lowerHandAriaLabel" type="tertiary-no-background" class="lower-hand" :class="model.attributes.raisedHand.state ? '' : 'hidden-visually'" :tabindex="model.attributes.raisedHand.state ? 0 : -1" - :aria-label="disableKeyboardShortcuts ? t('spreed', 'Lower hand') : t('spreed', 'Lower hand (R)')" @shortkey="toggleHandRaised" @click.stop="toggleHandRaised"> <template #icon> @@ -358,6 +358,12 @@ export default { : t('spreed', 'Unmute audio') }, + lowerHandAriaLabel() { + return this.disableKeyboardShortcuts + ? t('spreed', 'Lower hand') + : t('spreed', 'Lower hand (R)') + }, + videoButtonClass() { return { 'video-enabled': this.isVideoAllowed && this.model.attributes.videoAvailable && this.model.attributes.videoEnabled, |