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 searchLabel = "";
@property({ type: String }) public searchLabel?: string;
@property({ type: String }) public filter = "";

View File

@ -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")}
></ha-data-table>
`;
}

View File

@ -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")}
></ha-data-table>
`;
}

View File

@ -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")}
></ha-data-table>
${this._selectedEntities.length

View File

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