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

This commit is contained in:
Robert Pintilii 2022-02-14 12:43:04 +02:00 committed by GitHub
parent 79877e56f0
commit 4340d5b7fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

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