-
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
Simplify data table template #17825
Simplify data table template #17825
Conversation
de2b0ad
to
760e509
Compare
31aed6e
to
b9ab4c9
Compare
@@ -68,7 +68,7 @@ export class HaConfigUsers extends LitElement { | |||
width: "20%", | |||
direction: "asc", | |||
hidden: narrow, | |||
template: (username) => html`${username || "—"}`, | |||
template: (user) => html`${user.name || "—"}`, |
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.
This should be user.username, as now the Users table lists the Name twice, and the Username never.
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.
Adding @piitaya - not sure if you'll get notified otherwise.
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.
I'm not sure if this is being tracked anywhere. Do you want me to raise an issue?
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.
Fixed #18187
Proposed change
Only the full object instead of the property and the full object.
The value can be easily retrieve with
entry[property]
. This would simplify the data table usage and make the typing easier.Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: