From 87c95de8f02b73e9619c48ae163abab2e46ef44b Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 10 Nov 2021 21:36:19 -0800 Subject: [PATCH] Only show 'Visit device URL' if we have a url --- src/install-dialog.ts | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/install-dialog.ts b/src/install-dialog.ts index 4970e0e..e197509 100644 --- a/src/install-dialog.ts +++ b/src/install-dialog.ts @@ -272,18 +272,22 @@ class EwtInstallDialog extends LitElement { ${showSetupLinks ? html`
-
- { - this._state = "DASHBOARD"; - }} - > - - -
+ ${this._client!.nextUrl === undefined + ? "" + : html` +
+ { + this._state = "DASHBOARD"; + }} + > + + +
+ `} ${!this._manifest.home_assistant_domain ? "" : html`