fix(video-quality-label) Open dialog also on audio-only mode (#10957)
This commit is contained in:
parent
79877e56f0
commit
4340d5b7fc
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue