mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Limit changing network to systems that have that support (#6711)
This commit is contained in:
parent
2403743701
commit
90f12eea5e
@ -59,7 +59,9 @@ class HassioHostInfo extends LitElement {
|
|||||||
@internalProperty() public _networkInfo?: NetworkInfo;
|
@internalProperty() public _networkInfo?: NetworkInfo;
|
||||||
|
|
||||||
public render(): TemplateResult | void {
|
public render(): TemplateResult | void {
|
||||||
const primaryIpAddress = this._primaryIpAddress(this._networkInfo!);
|
const primaryIpAddress = this.hostInfo.features.includes("network")
|
||||||
|
? this._primaryIpAddress(this._networkInfo!)
|
||||||
|
: "";
|
||||||
return html`
|
return html`
|
||||||
<ha-card header="Host System">
|
<ha-card header="Host System">
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
@ -79,7 +81,8 @@ class HassioHostInfo extends LitElement {
|
|||||||
</mwc-button>
|
</mwc-button>
|
||||||
</ha-settings-row>`
|
</ha-settings-row>`
|
||||||
: ""}
|
: ""}
|
||||||
<ha-settings-row>
|
${this.hostInfo.features.includes("network")
|
||||||
|
? html` <ha-settings-row>
|
||||||
<span slot="heading">
|
<span slot="heading">
|
||||||
IP address
|
IP address
|
||||||
</span>
|
</span>
|
||||||
@ -92,7 +95,9 @@ class HassioHostInfo extends LitElement {
|
|||||||
@click=${this._changeNetworkClicked}
|
@click=${this._changeNetworkClicked}
|
||||||
>
|
>
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
</ha-settings-row>
|
</ha-settings-row>`
|
||||||
|
: ""}
|
||||||
|
|
||||||
<ha-settings-row>
|
<ha-settings-row>
|
||||||
<span slot="heading">
|
<span slot="heading">
|
||||||
Operating system
|
Operating system
|
||||||
|
Loading…
x
Reference in New Issue
Block a user