mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Include name and version in already connected dialog if present (#24492)
* Include name and version in already connected dialog if present * lint * Apply suggestions from code review * move
This commit is contained in:
parent
5a37087231
commit
bfe20d3760
@ -62,6 +62,26 @@ class DialogCloudAlreadyConnected extends LitElement {
|
|||||||
</b>
|
</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="instance-details">
|
<div class="instance-details">
|
||||||
|
${details.name
|
||||||
|
? html`<div class="instance-detail">
|
||||||
|
<span>
|
||||||
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.cloud.dialog_already_connected.instance_name"
|
||||||
|
)}:
|
||||||
|
</span>
|
||||||
|
<span>${details.name})}</span>
|
||||||
|
</div>`
|
||||||
|
: nothing}
|
||||||
|
${details.version
|
||||||
|
? html`<div class="instance-detail">
|
||||||
|
<span>
|
||||||
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.cloud.dialog_already_connected.instance_version"
|
||||||
|
)}:
|
||||||
|
</span>
|
||||||
|
<span>${details.version})}</span>
|
||||||
|
</div>`
|
||||||
|
: nothing}
|
||||||
<div class="instance-detail">
|
<div class="instance-detail">
|
||||||
<span>
|
<span>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
|
@ -4,6 +4,8 @@ export interface CloudAlreadyConnectedParams {
|
|||||||
details: {
|
details: {
|
||||||
remote_ip_address: string;
|
remote_ip_address: string;
|
||||||
connected_at: string;
|
connected_at: string;
|
||||||
|
name?: string;
|
||||||
|
version?: string;
|
||||||
};
|
};
|
||||||
logInHereAction: () => void;
|
logInHereAction: () => void;
|
||||||
closeDialog: () => void;
|
closeDialog: () => void;
|
||||||
|
@ -4728,6 +4728,8 @@
|
|||||||
"heading": "Account linked to other Home Assistant",
|
"heading": "Account linked to other Home Assistant",
|
||||||
"description": "We noticed that another instance is currently connected to your Home Assistant Cloud account. Your Home Assistant Cloud account can only be signed into one Home Assistant instance at a time. If you log in here, the other instance will be disconnected along with its Cloud services.",
|
"description": "We noticed that another instance is currently connected to your Home Assistant Cloud account. Your Home Assistant Cloud account can only be signed into one Home Assistant instance at a time. If you log in here, the other instance will be disconnected along with its Cloud services.",
|
||||||
"other_home_assistant": "Other Home Assistant",
|
"other_home_assistant": "Other Home Assistant",
|
||||||
|
"instance_name": "Instance name",
|
||||||
|
"instance_version": "Instance version",
|
||||||
"ip_address": "IP Address",
|
"ip_address": "IP Address",
|
||||||
"connected_at": "Connected at",
|
"connected_at": "Connected at",
|
||||||
"obfuscated_ip": {
|
"obfuscated_ip": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user