mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-28 06:06:36 +00:00
Only show 'Visit device URL' if we have a url
This commit is contained in:
parent
2155ad6439
commit
87c95de8f0
@ -272,18 +272,22 @@ class EwtInstallDialog extends LitElement {
|
|||||||
${showSetupLinks
|
${showSetupLinks
|
||||||
? html`
|
? html`
|
||||||
<div class="dashboard-buttons">
|
<div class="dashboard-buttons">
|
||||||
<div>
|
${this._client!.nextUrl === undefined
|
||||||
<a
|
? ""
|
||||||
href=${this._client!.nextUrl}
|
: html`
|
||||||
class="has-button"
|
<div>
|
||||||
target="_blank"
|
<a
|
||||||
@click=${() => {
|
href=${this._client!.nextUrl}
|
||||||
this._state = "DASHBOARD";
|
class="has-button"
|
||||||
}}
|
target="_blank"
|
||||||
>
|
@click=${() => {
|
||||||
<ewt-button label="Visit Device"></ewt-button>
|
this._state = "DASHBOARD";
|
||||||
</a>
|
}}
|
||||||
</div>
|
>
|
||||||
|
<ewt-button label="Visit Device"></ewt-button>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
`}
|
||||||
${!this._manifest.home_assistant_domain
|
${!this._manifest.home_assistant_domain
|
||||||
? ""
|
? ""
|
||||||
: html`
|
: html`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user