Skip to content

Commit

Permalink
Show tag ID if no name, sort by last updated on mobile (#20788)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored May 13, 2024
1 parent 2ad84b2 commit d046700
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/panels/config/tags/ha-config-tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class HaConfigTags extends SubscribeMixin(LitElement) {
filterable: true,
grows: true,
template: (tag) =>
html`${tag.name}
html`${tag.display_name}
${narrow
? html`<div class="secondary">
${tag.last_scanned_datetime
Expand All @@ -86,11 +86,10 @@ export class HaConfigTags extends SubscribeMixin(LitElement) {
</div>`
: ""}`,
},
};
if (!narrow) {
columns.last_scanned_datetime = {
last_scanned_datetime: {
title: localize("ui.panel.config.tag.headers.last_scanned"),
sortable: true,
hidden: narrow,
direction: "desc",
width: "20%",
template: (tag) => html`
Expand All @@ -102,8 +101,8 @@ export class HaConfigTags extends SubscribeMixin(LitElement) {
></ha-relative-time>`
: this.hass.localize("ui.panel.config.tag.never_scanned")}
`,
};
}
},
};
if (this._canWriteTags) {
columns.write = {
title: "",
Expand Down

0 comments on commit d046700

Please sign in to comment.