From 3f920767f173c78e16682319fcb6ce36408184ed Mon Sep 17 00:00:00 2001 From: Yosi Levy Date: Sun, 19 Jul 2020 06:04:42 +0300 Subject: [PATCH] Added noDataText --- src/components/data-table/ha-data-table.ts | 2 +- .../integration-panels/zha/zha-clusters-data-table.ts | 1 + .../integration-panels/zha/zha-device-endpoint-data-table.ts | 1 + .../lovelace/editor/unused-entities/hui-unused-entities.ts | 1 + src/translations/en.json | 3 ++- 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/data-table/ha-data-table.ts b/src/components/data-table/ha-data-table.ts index 912d0b02c4..3bd894e288 100644 --- a/src/components/data-table/ha-data-table.ts +++ b/src/components/data-table/ha-data-table.ts @@ -98,7 +98,7 @@ export class HaDataTable extends LitElement { @property({ type: String }) public noDataText?: string; - @property({ type: String }) public searchLabel = ""; + @property({ type: String }) public searchLabel?: string; @property({ type: String }) public filter = ""; diff --git a/src/panels/config/integrations/integration-panels/zha/zha-clusters-data-table.ts b/src/panels/config/integrations/integration-panels/zha/zha-clusters-data-table.ts index 45625b6ad6..96fd1e679a 100644 --- a/src/panels/config/integrations/integration-panels/zha/zha-clusters-data-table.ts +++ b/src/panels/config/integrations/integration-panels/zha/zha-clusters-data-table.ts @@ -94,6 +94,7 @@ export class ZHAClustersDataTable extends LitElement { auto-height .dir=${computeRTLDirection(this.hass)} .searchLabel=${this.hass.localize("ui.components.data-table.search")} + .noDataText=${this.hass.localize("ui.components.data-table.no-data")} > `; } diff --git a/src/panels/config/integrations/integration-panels/zha/zha-device-endpoint-data-table.ts b/src/panels/config/integrations/integration-panels/zha/zha-device-endpoint-data-table.ts index 8c07e59107..0a12acabe6 100644 --- a/src/panels/config/integrations/integration-panels/zha/zha-device-endpoint-data-table.ts +++ b/src/panels/config/integrations/integration-panels/zha/zha-device-endpoint-data-table.ts @@ -150,6 +150,7 @@ export class ZHADeviceEndpointDataTable extends LitElement { auto-height .dir=${computeRTLDirection(this.hass)} .searchLabel=${this.hass.localize("ui.components.data-table.search")} + .noDataText=${this.hass.localize("ui.components.data-table.no-data")} > `; } diff --git a/src/panels/lovelace/editor/unused-entities/hui-unused-entities.ts b/src/panels/lovelace/editor/unused-entities/hui-unused-entities.ts index 76269a2090..ef6a2aec42 100644 --- a/src/panels/lovelace/editor/unused-entities/hui-unused-entities.ts +++ b/src/panels/lovelace/editor/unused-entities/hui-unused-entities.ts @@ -177,6 +177,7 @@ export class HuiUnusedEntities extends LitElement { @selection-changed=${this._handleSelectionChanged} .dir=${computeRTLDirection(this.hass)} .searchLabel=${this.hass.localize("ui.components.data-table.search")} + .noDataText=${this.hass.localize("ui.components.data-table.no-data")} > ${this._selectedEntities.length diff --git a/src/translations/en.json b/src/translations/en.json index 9dcdeb92e0..4ba4a13fce 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -335,7 +335,8 @@ "automation": "Part of the following automations" }, "data-table": { - "search": "Search" + "search": "Search", + "no-data": "No data" } }, "dialogs": {