Added noDataText

This commit is contained in:
Yosi Levy 2020-07-19 06:04:42 +03:00
parent 3e14d27a1e
commit 3f920767f1
5 changed files with 6 additions and 2 deletions

View File

@ -98,7 +98,7 @@ export class HaDataTable extends LitElement {
@property({ type: String }) public noDataText?: string; @property({ type: String }) public noDataText?: string;
@property({ type: String }) public searchLabel = ""; @property({ type: String }) public searchLabel?: string;
@property({ type: String }) public filter = ""; @property({ type: String }) public filter = "";

View File

@ -94,6 +94,7 @@ export class ZHAClustersDataTable extends LitElement {
auto-height auto-height
.dir=${computeRTLDirection(this.hass)} .dir=${computeRTLDirection(this.hass)}
.searchLabel=${this.hass.localize("ui.components.data-table.search")} .searchLabel=${this.hass.localize("ui.components.data-table.search")}
.noDataText=${this.hass.localize("ui.components.data-table.no-data")}
></ha-data-table> ></ha-data-table>
`; `;
} }

View File

@ -150,6 +150,7 @@ export class ZHADeviceEndpointDataTable extends LitElement {
auto-height auto-height
.dir=${computeRTLDirection(this.hass)} .dir=${computeRTLDirection(this.hass)}
.searchLabel=${this.hass.localize("ui.components.data-table.search")} .searchLabel=${this.hass.localize("ui.components.data-table.search")}
.noDataText=${this.hass.localize("ui.components.data-table.no-data")}
></ha-data-table> ></ha-data-table>
`; `;
} }

View File

@ -177,6 +177,7 @@ export class HuiUnusedEntities extends LitElement {
@selection-changed=${this._handleSelectionChanged} @selection-changed=${this._handleSelectionChanged}
.dir=${computeRTLDirection(this.hass)} .dir=${computeRTLDirection(this.hass)}
.searchLabel=${this.hass.localize("ui.components.data-table.search")} .searchLabel=${this.hass.localize("ui.components.data-table.search")}
.noDataText=${this.hass.localize("ui.components.data-table.no-data")}
></ha-data-table> ></ha-data-table>
${this._selectedEntities.length ${this._selectedEntities.length

View File

@ -335,7 +335,8 @@
"automation": "Part of the following automations" "automation": "Part of the following automations"
}, },
"data-table": { "data-table": {
"search": "Search" "search": "Search",
"no-data": "No data"
} }
}, },
"dialogs": { "dialogs": {