mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-10 17:49:58 +00:00
Use receiver application statusText instead of host:port when not idle
This commit is contained in:
@@ -17,10 +17,9 @@ export interface Receiver {
|
||||
export interface ReceiverStatus {
|
||||
application: {
|
||||
displayName: string;
|
||||
isIdleScreen: string;
|
||||
isIdleScreen: boolean;
|
||||
statusText: string;
|
||||
};
|
||||
id: string;
|
||||
volume: {
|
||||
level: number;
|
||||
muted: boolean
|
||||
|
||||
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user