mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 08:46: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._newIcon = "icon" in params.config ? params.config.icon : undefined;
|
||||||
this._newName =
|
this._newName =
|
||||||
params.config.alias ||
|
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 || "";
|
this._newDescription = params.config.description || "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,7 +85,7 @@ class DialogAutomationRename extends LitElement implements HassDialog {
|
|||||||
dialogInitialFocus
|
dialogInitialFocus
|
||||||
.value=${this._newName}
|
.value=${this._newName}
|
||||||
.placeholder=${this.hass.localize(
|
.placeholder=${this.hass.localize(
|
||||||
"ui.panel.config.automation.editor.default_name"
|
`ui.panel.config.${this._params.domain}.editor.default_name`
|
||||||
)}
|
)}
|
||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
"ui.panel.config.automation.editor.alias"
|
"ui.panel.config.automation.editor.alias"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user