mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Fix stop button not being enabled in certain contexts
This commit is contained in:
@@ -294,7 +294,9 @@ class ReceiverEntry extends Component<ReceiverEntryProps, ReceiverEntryState> {
|
||||
</div>
|
||||
<button className="receiver__connect"
|
||||
onClick={ this.handleCast }
|
||||
disabled={this.props.isLoading || !this.props.canCast}>
|
||||
disabled={ this.state.showAlternateAction
|
||||
? application.isIdleScreen
|
||||
: (this.props.isLoading || !this.props.canCast) }>
|
||||
{ this.state.isLoading
|
||||
? _("popupCastingButtonTitle"
|
||||
, (this.state.isLoading
|
||||
|
||||
Reference in New Issue
Block a user