mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 03:22:11 +00:00
disable button when stream not loaded
This commit is contained in:
parent
5bc7040ef6
commit
a0225f6ea3
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ const ControlBar = ({
|
||||||
<div className={classnames(styles['control-bar-buttons-menu-container'], { 'open': buttonsMenuOpen })}>
|
<div className={classnames(styles['control-bar-buttons-menu-container'], { 'open': buttonsMenuOpen })}>
|
||||||
{
|
{
|
||||||
document.pictureInPictureEnabled ?
|
document.pictureInPictureEnabled ?
|
||||||
<Button className={classnames(styles['control-bar-button'], { 'disabled': stream === null })} tabIndex={-1} onClick={onPipButtonClick}>
|
<Button className={classnames(styles['control-bar-button'], { 'disabled': duration == null })} tabIndex={-1} onClick={onPipButtonClick}>
|
||||||
<Icon className={styles['icon']} name={'open-in-browser'} />
|
<Icon className={styles['icon']} name={'open-in-browser'} />
|
||||||
</Button>
|
</Button>
|
||||||
:
|
:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue