Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show hide create option in todo card editor #24643

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export class HuiTodoListEditor
},
{ name: "theme", selector: { theme: {} } },
{ name: "hide_completed", selector: { boolean: {} } },
{ name: "hide_create", selector: { boolean: {} } },
{
name: "display_order",
selector: {
Expand Down Expand Up @@ -127,6 +128,7 @@ export class HuiTodoListEditor
"ui.panel.lovelace.editor.card.config.optional"
)})`;
case "hide_completed":
case "hide_create":
case "display_order":
return this.hass!.localize(
`ui.panel.lovelace.editor.card.todo-list.${schema.name}`
Expand Down
1 change: 1 addition & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7163,6 +7163,7 @@
"description": "The To-do list card allows you to add, edit, check-off, and remove items from your to-do list.",
"integration_not_loaded": "This card requires the `todo` integration to be set up.",
"hide_completed": "Hide completed items",
"hide_create": "Hide add item option",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"hide_create": "Hide add item option",
"hide_create": "Hide add item",

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading <verb> <verb> <noun> throws me off a bit. Maybe something more like Hide 'Add item' field is a little clearer?

"display_order": "Display Order",
"sort_modes": {
"none": "Default",
Expand Down
Loading