mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix dialog-device-registry-detail missing labels (#17001)
This commit is contained in:
parent
76490cc690
commit
3528f5c7aa
@ -67,7 +67,9 @@ class DialogDeviceRegistryDetail extends LitElement {
|
|||||||
<ha-textfield
|
<ha-textfield
|
||||||
.value=${this._nameByUser}
|
.value=${this._nameByUser}
|
||||||
@input=${this._nameChanged}
|
@input=${this._nameChanged}
|
||||||
.label=${this.hass.localize("ui.panel.config.devices.name")}
|
.label=${this.hass.localize(
|
||||||
|
"ui.dialogs.device-registry-detail.name"
|
||||||
|
)}
|
||||||
.placeholder=${device.name || ""}
|
.placeholder=${device.name || ""}
|
||||||
.disabled=${this._submitting}
|
.disabled=${this._submitting}
|
||||||
dialogInitialFocus
|
dialogInitialFocus
|
||||||
@ -87,10 +89,10 @@ class DialogDeviceRegistryDetail extends LitElement {
|
|||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.config.devices.enabled_label",
|
"ui.dialogs.device-registry-detail.enabled_label",
|
||||||
"type",
|
"type",
|
||||||
this.hass.localize(
|
this.hass.localize(
|
||||||
`ui.panel.config.devices.type.${
|
`ui.dialogs.device-registry-detail.type.${
|
||||||
device.entry_type || "device"
|
device.entry_type || "device"
|
||||||
}`
|
}`
|
||||||
)
|
)
|
||||||
@ -99,10 +101,10 @@ class DialogDeviceRegistryDetail extends LitElement {
|
|||||||
<div class="secondary">
|
<div class="secondary">
|
||||||
${this._disabledBy && this._disabledBy !== "user"
|
${this._disabledBy && this._disabledBy !== "user"
|
||||||
? this.hass.localize(
|
? this.hass.localize(
|
||||||
"ui.panel.config.devices.enabled_cause",
|
"ui.dialogs.device-registry-detail.enabled_cause",
|
||||||
"type",
|
"type",
|
||||||
this.hass.localize(
|
this.hass.localize(
|
||||||
`ui.panel.config.devices.type.${
|
`ui.dialogs.device-registry-detail.type.${
|
||||||
device.entry_type || "device"
|
device.entry_type || "device"
|
||||||
}`
|
}`
|
||||||
),
|
),
|
||||||
@ -113,7 +115,7 @@ class DialogDeviceRegistryDetail extends LitElement {
|
|||||||
)
|
)
|
||||||
: ""}
|
: ""}
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.config.devices.enabled_description"
|
"ui.dialogs.device-registry-detail.enabled_description"
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -132,7 +134,7 @@ class DialogDeviceRegistryDetail extends LitElement {
|
|||||||
@click=${this._updateEntry}
|
@click=${this._updateEntry}
|
||||||
.disabled=${this._submitting}
|
.disabled=${this._submitting}
|
||||||
>
|
>
|
||||||
${this.hass.localize("ui.panel.config.devices.update")}
|
${this.hass.localize("ui.dialogs.device-registry-detail.update")}
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
</ha-dialog>
|
</ha-dialog>
|
||||||
`;
|
`;
|
||||||
@ -163,7 +165,7 @@ class DialogDeviceRegistryDetail extends LitElement {
|
|||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
this._error =
|
this._error =
|
||||||
err.message ||
|
err.message ||
|
||||||
this.hass.localize("ui.panel.config.devices.unknown_error");
|
this.hass.localize("ui.dialogs.device-registry-detail.unknown_error");
|
||||||
} finally {
|
} finally {
|
||||||
this._submitting = false;
|
this._submitting = false;
|
||||||
}
|
}
|
||||||
|
@ -1103,6 +1103,20 @@
|
|||||||
"no_aliases": "Configure aliases and expose settings for voice assistants"
|
"no_aliases": "Configure aliases and expose settings for voice assistants"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"device-registry-detail": {
|
||||||
|
"name": "[%key:ui::panel::config::devices::name%]",
|
||||||
|
"enabled_label": "[%key:ui::panel::config::devices::enabled_label%]",
|
||||||
|
"enabled_cause": "[%key:ui::panel::config::devices::enabled_cause%]",
|
||||||
|
"type": {
|
||||||
|
"device_heading": "[%key:ui::panel::config::devices::type::device_heading%]",
|
||||||
|
"device": "[%key:ui::panel::config::devices::type::device%]",
|
||||||
|
"service_heading": "[%key:ui::panel::config::devices::type::service_heading%]",
|
||||||
|
"service": "[%key:ui::panel::config::devices::type::service%]"
|
||||||
|
},
|
||||||
|
"enabled_description": "[%key:ui::panel::config::devices::enabled_description%]",
|
||||||
|
"update": "[%key:ui::panel::config::devices::update%]",
|
||||||
|
"unknown_error": "[%key:ui::panel::config::devices::unknown_error%]"
|
||||||
|
},
|
||||||
"voice-settings": {
|
"voice-settings": {
|
||||||
"expose_header": "Expose",
|
"expose_header": "Expose",
|
||||||
"aliases_header": "Aliases",
|
"aliases_header": "Aliases",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user