-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add description and due support to todo lists #19107
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should check for supported features in the dialog to only show field if the entity support it. Maybe, we should pass the full supported feature instead of canUpdate
and canDelete
scrimClickAction | ||
escapeKeyAction |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scrimClickAction | |
escapeKeyAction |
Do you think we can allow escape to easily close the popup if the user misclick the checkbox and it opens the dialog?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rule is to not allow it on dialogs with input forms 🤷
<span> | ||
${this.hass!.localize( | ||
"ui.panel.lovelace.cards.todo-list.unchecked_items" | ||
)} | ||
</span> | ||
${this.todoListSupportsFeature(TodoListEntityFeature.MOVE_TODO_ITEM) | ||
? html` | ||
? html`<ha-button-menu> | ||
<ha-icon-button | ||
class="reorderButton" | ||
.path=${mdiSort} | ||
.title=${this.hass!.localize( | ||
slot="trigger" | ||
.path=${mdiDotsVertical} | ||
></ha-icon-button> | ||
<ha-list-item @click=${this._toggleReorder} graphic="icon"> | ||
${this.hass!.localize( | ||
"ui.panel.lovelace.cards.todo-list.reorder_items" | ||
)} | ||
@click=${this._toggleReorder} | ||
.disabled=${unavailable} | ||
> | ||
</ha-icon-button> | ||
` | ||
<ha-svg-icon | ||
slot="graphic" | ||
.path=${mdiSort} | ||
.disabled=${unavailable} | ||
> | ||
</ha-svg-icon> | ||
</ha-list-item> | ||
</ha-button-menu>` | ||
: nothing} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure we should hide or just show a message underneath that There are no items to do!
FYI I've got a pending PR to change the API to support clearing fields home-assistant/core#106208 |
Proposed change
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: