mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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
|
||||
.value=${this._nameByUser}
|
||||
@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 || ""}
|
||||
.disabled=${this._submitting}
|
||||
dialogInitialFocus
|
||||
@ -87,10 +89,10 @@ class DialogDeviceRegistryDetail extends LitElement {
|
||||
<div>
|
||||
<div>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.devices.enabled_label",
|
||||
"ui.dialogs.device-registry-detail.enabled_label",
|
||||
"type",
|
||||
this.hass.localize(
|
||||
`ui.panel.config.devices.type.${
|
||||
`ui.dialogs.device-registry-detail.type.${
|
||||
device.entry_type || "device"
|
||||
}`
|
||||
)
|
||||
@ -99,10 +101,10 @@ class DialogDeviceRegistryDetail extends LitElement {
|
||||
<div class="secondary">
|
||||
${this._disabledBy && this._disabledBy !== "user"
|
||||
? this.hass.localize(
|
||||
"ui.panel.config.devices.enabled_cause",
|
||||
"ui.dialogs.device-registry-detail.enabled_cause",
|
||||
"type",
|
||||
this.hass.localize(
|
||||
`ui.panel.config.devices.type.${
|
||||
`ui.dialogs.device-registry-detail.type.${
|
||||
device.entry_type || "device"
|
||||
}`
|
||||
),
|
||||
@ -113,7 +115,7 @@ class DialogDeviceRegistryDetail extends LitElement {
|
||||
)
|
||||
: ""}
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.devices.enabled_description"
|
||||
"ui.dialogs.device-registry-detail.enabled_description"
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
@ -132,7 +134,7 @@ class DialogDeviceRegistryDetail extends LitElement {
|
||||
@click=${this._updateEntry}
|
||||
.disabled=${this._submitting}
|
||||
>
|
||||
${this.hass.localize("ui.panel.config.devices.update")}
|
||||
${this.hass.localize("ui.dialogs.device-registry-detail.update")}
|
||||
</mwc-button>
|
||||
</ha-dialog>
|
||||
`;
|
||||
@ -163,7 +165,7 @@ class DialogDeviceRegistryDetail extends LitElement {
|
||||
} catch (err: any) {
|
||||
this._error =
|
||||
err.message ||
|
||||
this.hass.localize("ui.panel.config.devices.unknown_error");
|
||||
this.hass.localize("ui.dialogs.device-registry-detail.unknown_error");
|
||||
} finally {
|
||||
this._submitting = false;
|
||||
}
|
||||
|
@ -1103,6 +1103,20 @@
|
||||
"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": {
|
||||
"expose_header": "Expose",
|
||||
"aliases_header": "Aliases",
|
||||
|
Loading…
x
Reference in New Issue
Block a user