Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(video-quality-label) Open dialog also on audio-only mode (#10957)

Robert Pintilii4340d5b7fcca
diff --git a/react/features/video-quality/components/VideoQualityLabel.web.js b/react/features/video-quality/components/VideoQualityLabel.web.js
index fd9f95feb0..d23a3e607b 100644
--- a/react/features/video-quality/components/VideoQualityLabel.web.js
+++ b/react/features/video-quality/components/VideoQualityLabel.web.js
@@ -64,7 +64,7 @@ export class VideoQualityLabel extends AbstractVideoQualityLabel<Props> {
return null;
}
- let className, icon, labelContent, onClick, tooltipKey;
+ let className, icon, labelContent, tooltipKey;
if (_audioOnly) {
className = 'audio-only';
@@ -73,10 +73,10 @@ export class VideoQualityLabel extends AbstractVideoQualityLabel<Props> {
} else {
className = 'current-video-quality';
icon = IconGauge;
- onClick = () => dispatch(openDialog(VideoQualityDialog));
tooltipKey = 'videoStatus.performanceSettings';
}
+ const onClick = () => dispatch(openDialog(VideoQualityDialog));
return (
<Tooltip
@@ -86,6 +86,7 @@ export class VideoQualityLabel extends AbstractVideoQualityLabel<Props> {
className = { className }
icon = { icon }
id = 'videoResolutionLabel'
+ // eslint-disable-next-line react/jsx-no-bind
onClick = { onClick }
text = { labelContent } />
</Tooltip>