mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 15:56:35 +00:00
Fix script rename name placeholder (#22160)
This commit is contained in:
parent
9c7324298b
commit
23c21a35d8
@ -41,7 +41,9 @@ class DialogAutomationRename extends LitElement implements HassDialog {
|
||||
this._newIcon = "icon" in params.config ? params.config.icon : undefined;
|
||||
this._newName =
|
||||
params.config.alias ||
|
||||
this.hass.localize("ui.panel.config.automation.editor.default_name");
|
||||
this.hass.localize(
|
||||
`ui.panel.config.${this._params.domain}.editor.default_name`
|
||||
);
|
||||
this._newDescription = params.config.description || "";
|
||||
}
|
||||
|
||||
@ -83,7 +85,7 @@ class DialogAutomationRename extends LitElement implements HassDialog {
|
||||
dialogInitialFocus
|
||||
.value=${this._newName}
|
||||
.placeholder=${this.hass.localize(
|
||||
"ui.panel.config.automation.editor.default_name"
|
||||
`ui.panel.config.${this._params.domain}.editor.default_name`
|
||||
)}
|
||||
.label=${this.hass.localize(
|
||||
"ui.panel.config.automation.editor.alias"
|
||||
|
Loading…
x
Reference in New Issue
Block a user