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;
}
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>