diff --git a/src/components/data-table/ha-data-table.ts b/src/components/data-table/ha-data-table.ts index c05c968b4f..18d4d4a5a1 100644 --- a/src/components/data-table/ha-data-table.ts +++ b/src/components/data-table/ha-data-table.ts @@ -70,6 +70,7 @@ export interface DataTableSortColumnData { export interface DataTableColumnData extends DataTableSortColumnData { title: TemplateResult | string; + label?: TemplateResult | string; type?: "numeric" | "icon" | "icon-button" | "overflow-menu"; template?: (data: any, row: T) => TemplateResult | string; width?: string; @@ -294,6 +295,7 @@ export class HaDataTable extends LitElement { }; return html`
html` @@ -127,6 +130,9 @@ class HaAutomationPicker extends LitElement { `, }; columns.trigger = { + label: this.hass.localize( + "ui.panel.config.automation.picker.headers.trigger" + ), title: html` ${this.hass.localize("ui.card.automation.trigger")} @@ -146,6 +152,9 @@ class HaAutomationPicker extends LitElement { } columns.actions = { title: "", + label: this.hass.localize( + "ui.panel.config.automation.picker.headers.actions" + ), type: "overflow-menu", template: (_info, automation: any) => html` disabled_by diff --git a/src/panels/config/entities/ha-config-entities.ts b/src/panels/config/entities/ha-config-entities.ts index 8c8bcec0d7..36afbb6092 100644 --- a/src/panels/config/entities/ha-config-entities.ts +++ b/src/panels/config/entities/ha-config-entities.ts @@ -168,6 +168,9 @@ export class HaConfigEntities extends SubscribeMixin(LitElement) { (narrow, _language, showDisabled): DataTableColumnContainer => ({ icon: { title: "", + label: this.hass.localize( + "ui.panel.config.entities.picker.headers.state_icon" + ), type: "icon", template: (_, entry: EntityRow) => html` icon @@ -88,6 +91,9 @@ export class HaConfigHelpers extends LitElement { }; columns.editable = { title: "", + label: this.hass.localize( + "ui.panel.config.helpers.picker.headers.editable" + ), type: "icon", template: (editable) => html` ${!editable diff --git a/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts b/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts index 4ac61b267b..59c787b91c 100644 --- a/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts +++ b/src/panels/config/lovelace/dashboards/ha-config-lovelace-dashboards.ts @@ -53,6 +53,9 @@ export class HaConfigLovelaceDashboards extends LitElement { const columns: DataTableColumnContainer = { icon: { title: "", + label: this.hass.localize( + "ui.panel.config.lovelace.dashboards.picker.headers.icon" + ), type: "icon", template: (icon, dashboard) => icon @@ -161,6 +164,9 @@ export class HaConfigLovelaceDashboards extends LitElement { columns.url_path = { title: "", + label: this.hass.localize( + "ui.panel.config.lovelace.dashboards.picker.headers.url" + ), filterable: true, width: "100px", template: (urlPath) => diff --git a/src/panels/config/scene/ha-scene-dashboard.ts b/src/panels/config/scene/ha-scene-dashboard.ts index 53310c5e8c..07ca40e110 100644 --- a/src/panels/config/scene/ha-scene-dashboard.ts +++ b/src/panels/config/scene/ha-scene-dashboard.ts @@ -67,6 +67,9 @@ class HaSceneDashboard extends LitElement { (_language): DataTableColumnContainer => ({ activate: { title: "", + label: this.hass.localize( + "ui.panel.config.scene.picker.headers.activate" + ), type: "icon-button", template: (_toggle, scene) => html` @@ -82,6 +85,7 @@ class HaSceneDashboard extends LitElement { }, icon: { title: "", + label: this.hass.localize("ui.panel.config.scene.picker.headers.state"), type: "icon", template: (_, scene) => html` `, @@ -95,6 +99,9 @@ class HaSceneDashboard extends LitElement { }, info: { title: "", + label: this.hass.localize( + "ui.panel.config.scene.picker.headers.show_info" + ), type: "icon-button", template: (_info, scene) => html` html` html` @@ -84,6 +85,9 @@ class HaScriptPicker extends LitElement { }, icon: { title: "", + label: this.hass.localize( + "ui.panel.config.script.picker.headers.state" + ), type: "icon", template: (_icon, script) => html` `, @@ -124,6 +128,7 @@ class HaScriptPicker extends LitElement { } columns.info = { title: "", + label: this.hass.localize("ui.panel.config.script.picker.show_info"), type: "icon-button", template: (_info, script) => html` html` @@ -152,6 +158,7 @@ class HaScriptPicker extends LitElement { }; columns.edit = { title: "", + label: this.hass.localize("ui.panel.config.script.picker.edit_script"), type: "icon-button", template: (_info, script: any) => html` diff --git a/src/panels/config/tags/ha-config-tags.ts b/src/panels/config/tags/ha-config-tags.ts index 6b53cac199..26a0c6f1e8 100644 --- a/src/panels/config/tags/ha-config-tags.ts +++ b/src/panels/config/tags/ha-config-tags.ts @@ -61,6 +61,7 @@ export class HaConfigTags extends SubscribeMixin(LitElement) { const columns: DataTableColumnContainer = { icon: { title: "", + label: this.hass.localize("ui.panel.config.tag.headers.icon"), type: "icon", template: (_icon, tag) => html``, }, @@ -103,6 +104,7 @@ export class HaConfigTags extends SubscribeMixin(LitElement) { if (this._canWriteTags) { columns.write = { title: "", + label: this.hass.localize("ui.panel.config.tag.headers.write"), type: "icon-button", template: (_write, tag: any) => html` html`