Bladeren bron

fix(videoquality_label): tooltip text for audio only mode

master
hristoterezov 7 jaren geleden
bovenliggende
commit
c5436428e5
2 gewijzigde bestanden met toevoegingen van 5 en 2 verwijderingen
  1. 2
    1
      lang/main.json
  2. 3
    1
      react/features/video-quality/components/VideoQualityLabel.web.js

+ 2
- 1
lang/main.json Bestand weergeven

448
         "callQuality": "Call Quality",
448
         "callQuality": "Call Quality",
449
         "hd": "HD",
449
         "hd": "HD",
450
         "highDefinition": "High definition",
450
         "highDefinition": "High definition",
451
-        "labelTooltip": "Current video quality",
451
+        "labelTooltipVideo": "Current video quality",
452
+        "labelTooltipAudioOnly":  "Audio-only mode enabled",
452
         "ld": "LD",
453
         "ld": "LD",
453
         "lowDefinition": "Low definition",
454
         "lowDefinition": "Low definition",
454
         "p2pEnabled": "Peer to Peer Enabled",
455
         "p2pEnabled": "Peer to Peer Enabled",

+ 3
- 1
react/features/video-quality/components/VideoQualityLabel.web.js Bestand weergeven

148
         const opening = this.state.togglingToVisible ? 'opening' : '';
148
         const opening = this.state.togglingToVisible ? 'opening' : '';
149
         const classNames
149
         const classNames
150
             = `${baseClasses} ${filmstrip} ${remoteVideosVisible} ${opening}`;
150
             = `${baseClasses} ${filmstrip} ${remoteVideosVisible} ${opening}`;
151
+        const tooltipKey
152
+            = `videoStatus.labelTooltip${_audioOnly ? 'AudioOnly' : 'Video'}`;
151
 
153
 
152
         return (
154
         return (
153
             <div
155
             <div
154
                 className = { classNames }
156
                 className = { classNames }
155
                 id = 'videoResolutionLabel'>
157
                 id = 'videoResolutionLabel'>
156
                 <Tooltip
158
                 <Tooltip
157
-                    description = { t('videoStatus.labelTooltip') }
159
+                    description = { t(tooltipKey) }
158
                     position = { 'left' }>
160
                     position = { 'left' }>
159
                     <div className = 'video-quality-label-status'>
161
                     <div className = 'video-quality-label-status'>
160
                         { _audioOnly
162
                         { _audioOnly

Laden…
Annuleren
Opslaan