Use receiver application statusText instead of host:port when not idle

This commit is contained in:
hensm
2019-08-04 11:01:20 +01:00
parent 0fa1f63576
commit 8ac3cf49f5
5 changed files with 27 additions and 6 deletions

View File

@@ -235,9 +235,10 @@ class ReceiverEntry extends Component<ReceiverEntryProps, ReceiverEntryState> {
{ this.props.receiver.friendlyName }
</div>
<div className="receiver-address">
{ `${this.props.receiver.host}:${this.props.receiver.port}` }
{ this.props.receiver.status.application.isIdleScreen
? `${this.props.receiver.host}:${this.props.receiver.port}`
: this.props.receiver.status.application.statusText }
</div>
<div className="receiver-status"></div>
<button className="receiver-connect"
onClick={ this.handleCast }
disabled={this.props.isLoading}>