Give todo and calendar edit static header (#19233)

This commit is contained in:
Bram Kragten 2024-01-02 18:48:34 +01:00 committed by GitHub
parent f994b378f1
commit 5eaa6dafd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -144,9 +144,9 @@ class DialogCalendarEventEditor extends LitElement {
escapeKeyAction
.heading=${createCloseHeading(
this.hass,
isCreate
? this.hass.localize("ui.components.calendar.event.add")
: this._summary
this.hass.localize(
`ui.components.calendar.event.${isCreate ? "add" : "edit"}`
)
)}
>
<div class="content">

View File

@ -101,9 +101,9 @@ class DialogTodoItemEditor extends LitElement {
scrimClickAction
.heading=${createCloseHeading(
this.hass,
isCreate
? this.hass.localize("ui.components.todo.item.add")
: this._summary
this.hass.localize(
`ui.components.todo.item.${isCreate ? "add" : "edit"}`
)
)}
>
<div class="content">