fix(videoquality_label): tooltip text for audio only mode

pull/2008/head
hristoterezov 8 years ago
parent 628dc99bfe
commit c5436428e5
  1. 3
      lang/main.json
  2. 4
      react/features/video-quality/components/VideoQualityLabel.web.js

@ -448,7 +448,8 @@
"callQuality": "Call Quality", "callQuality": "Call Quality",
"hd": "HD", "hd": "HD",
"highDefinition": "High definition", "highDefinition": "High definition",
"labelTooltip": "Current video quality", "labelTooltipVideo": "Current video quality",
"labelTooltipAudioOnly": "Audio-only mode enabled",
"ld": "LD", "ld": "LD",
"lowDefinition": "Low definition", "lowDefinition": "Low definition",
"p2pEnabled": "Peer to Peer Enabled", "p2pEnabled": "Peer to Peer Enabled",

@ -148,13 +148,15 @@ export class VideoQualityLabel extends Component {
const opening = this.state.togglingToVisible ? 'opening' : ''; const opening = this.state.togglingToVisible ? 'opening' : '';
const classNames const classNames
= `${baseClasses} ${filmstrip} ${remoteVideosVisible} ${opening}`; = `${baseClasses} ${filmstrip} ${remoteVideosVisible} ${opening}`;
const tooltipKey
= `videoStatus.labelTooltip${_audioOnly ? 'AudioOnly' : 'Video'}`;
return ( return (
<div <div
className = { classNames } className = { classNames }
id = 'videoResolutionLabel'> id = 'videoResolutionLabel'>
<Tooltip <Tooltip
description = { t('videoStatus.labelTooltip') } description = { t(tooltipKey) }
position = { 'left' }> position = { 'left' }>
<div className = 'video-quality-label-status'> <div className = 'video-quality-label-status'>
{ _audioOnly { _audioOnly

Loading…
Cancel
Save