Fix stop button not being enabled in certain contexts

This commit is contained in:
hensm
2020-01-19 22:42:04 +00:00
parent bbfc380f4a
commit ede9de4f7d

View File

@@ -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