- {{ with .Profile.LoginName }}
-
+
+
+
-
- {{ end }}
- {{.}}
- Switch account -
- {{ with .Profile.ProfilePicURL }}
-
- {{ else }}
-
- {{ end }}
-
+
+ {{ with .Profile.LoginName }}
+
+
-
- {{ if .IP }}
- {{.}}
+ Switch account
-
-
-
- {{ end }}
- {{ if or (eq .Status "NeedsLogin") (eq .Status "NoState") }}
- {{ if .IP }}
- {{.DeviceName}}
+ {{ end }} +
+ {{ with .Profile.ProfilePicURL }}
+
+ {{ else }}
+
+ {{ end }}
- {{.IP}}
-
-
-
-
-
- {{ else }}
- Your device's key has expired. Reauthenticate this device by logging in again, or learn more.
-
-
-
-
- {{ end }}
- {{ else if eq .Status "NeedsMachineAuth" }}
- Log in
-Get started by logging in to your Tailscale network. Or, learn more at tailscale.com.
-
- This device is authorized, but needs approval from a network admin before it can connect to the network.
-
- {{ else }}
-
-
You are connected! Access this device over Tailscale using the device name or IP address above.
+ + {{ if .IP }} +
+
+
+
- Reauthenticate
- {{ end }}
-
-
+Array.from(loginButtons).forEach(el => {
+ el.addEventListener("click", handleClick);
+})
+})();