Skip to content

Commit

Permalink
Give todo and calendar edit static header (#19233)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Jan 2, 2024
1 parent 8d496e1 commit de3b9a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/panels/calendar/dialog-calendar-event-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
6 changes: 3 additions & 3 deletions src/panels/todo/dialog-todo-item-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit de3b9a5

Please sign in to comment.