Skip to content

Commit

Permalink
fix(controls): change controls tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexZakablukov authored and stavares843 committed May 30, 2022
1 parent 4e09e58 commit 03c705a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions components/views/media/actions/Actions.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<div id="actions">
<div data-cy="call-video" v-tooltip.top="$t('controls.video')">
<div
data-cy="call-video"
v-tooltip.top="videoMuted ? $t('controls.turn_on_camera') : $t('controls.turn_off_camera')"
>
<InteractablesButton
class="left"
:type="videoMuted ? 'danger' : 'dark'"
Expand All @@ -12,7 +15,7 @@
<video-off-icon v-else size="1.2x" />
</InteractablesButton>
</div>
<div v-tooltip.top="$t('controls.mute')">
<div v-tooltip.top="audioMuted ? $t('controls.unmute') : $t('controls.mute')">
<InteractablesButton
:type="audioMuted ? 'danger' : 'dark'"
size="small"
Expand All @@ -24,7 +27,9 @@
<mic-off-icon v-else size="1.2x" />
</InteractablesButton>
</div>
<div v-tooltip.top="$t('controls.screen')">
<div
v-tooltip.top="screenMuted ? $t('controls.screen') : $t('controls.stop_streaming')"
>
<InteractablesButton
:type="screenMuted ? 'danger' : 'dark'"
size="small"
Expand Down
6 changes: 3 additions & 3 deletions components/views/navigation/sidebar/controls/Controls.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<InteractablesButton
:type="audioMuted ? 'danger' : 'dark'"
size="small"
v-tooltip.top="$t('controls.mute')"
v-tooltip.top="audioMuted ? $t('controls.unmute') : $t('controls.mute')"
:action="() => toggleMute('audio')"
:text="$t('controls.mic')"
:loading="isLoading"
Expand All @@ -14,7 +14,7 @@
<InteractablesButton
:type="audio.deafened ? 'danger' : 'dark'"
size="small"
v-tooltip.top="$t('controls.deafen')"
v-tooltip.top="audio.deafened ? $t('controls.undeafen') : $t('controls.deafen')"
:action="() => toggleDeafen()"
:text="$t('controls.headphones')"
>
Expand All @@ -24,7 +24,7 @@
<InteractablesButton
:type="videoMuted ? 'danger' : 'dark'"
size="small"
v-tooltip.top="$t('controls.toggle')"
v-tooltip.top="videoMuted ? $t('controls.turn_on_camera') : $t('controls.turn_off_camera')"
:text="$t('controls.video')"
:action="() => toggleMute('video')"
:loading="isLoading"
Expand Down
5 changes: 5 additions & 0 deletions locales/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,14 @@ export default {
hang_up: 'Hang Up',
call: 'Call',
screen: 'Share Screen',
stop_streaming: 'Stop Streaming',
mute: 'Mute',
unmute: 'Unmute',
toggle: 'Toggle',
deafen: 'Deafen',
undeafen: 'Undeafen',
turn_off_camera: 'Turn Off Camera',
turn_on_camera: 'Turn On Camera',
crop: 'Crop',
edit: 'Edit',
end_stream: 'End Stream',
Expand Down

0 comments on commit 03c705a

Please sign in to comment.