mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 17:56:46 +00:00
Merge pull request #6431 from yosilevy/Unused-entities-search
ha-data-table search label + no data text label
This commit is contained in:
commit
ccafdc6e1f
@ -98,6 +98,8 @@ export class HaDataTable extends LitElement {
|
||||
|
||||
@property({ type: String }) public noDataText?: string;
|
||||
|
||||
@property({ type: String }) public searchLabel?: string;
|
||||
|
||||
@property({ type: String }) public filter = "";
|
||||
|
||||
@internalProperty() private _filterable = false;
|
||||
@ -202,6 +204,7 @@ export class HaDataTable extends LitElement {
|
||||
<div class="table-header">
|
||||
<search-input
|
||||
@value-changed=${this._handleSearchChange}
|
||||
.label=${this.searchLabel}
|
||||
></search-input>
|
||||
</div>
|
||||
`
|
||||
|
@ -93,6 +93,8 @@ export class ZHAClustersDataTable extends LitElement {
|
||||
selectable
|
||||
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>
|
||||
`;
|
||||
}
|
||||
|
@ -149,6 +149,8 @@ export class ZHADeviceEndpointDataTable extends LitElement {
|
||||
.selectable=${this.selectable}
|
||||
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>
|
||||
`;
|
||||
}
|
||||
|
@ -176,6 +176,12 @@ export class HuiUnusedEntities extends LitElement {
|
||||
selectable
|
||||
@selection-changed=${this._handleSelectionChanged}
|
||||
.dir=${computeRTLDirection(this.hass)}
|
||||
.searchLabel=${this.hass.localize(
|
||||
"ui.panel.lovelace.unused_entities.search"
|
||||
)}
|
||||
.noDataText=${this.hass.localize(
|
||||
"ui.panel.lovelace.unused_entities.no_data"
|
||||
)}
|
||||
></ha-data-table>
|
||||
|
||||
${this._selectedEntities.length
|
||||
|
@ -335,7 +335,8 @@
|
||||
"automation": "Part of the following automations"
|
||||
},
|
||||
"data-table": {
|
||||
"search": "Search"
|
||||
"search": "Search",
|
||||
"no-data": "No data"
|
||||
}
|
||||
},
|
||||
"dialogs": {
|
||||
@ -1829,7 +1830,9 @@
|
||||
"entity": "Entity",
|
||||
"entity_id": "Entity ID",
|
||||
"domain": "Domain",
|
||||
"last_changed": "Last Changed"
|
||||
"last_changed": "Last Changed",
|
||||
"search": "Search entities",
|
||||
"no_data": "No unused entities found"
|
||||
},
|
||||
"add_entities": {
|
||||
"yaml_unsupported": "You cannot use this function when using Lovelace UI in YAML mode.",
|
||||
|
Loading…
x
Reference in New Issue
Block a user