mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Localize the statistics search label (#17223)
* Localize the statistics search label * switch to common search
This commit is contained in:
parent
fdf5abd0f9
commit
0974d86bfd
@ -33,7 +33,7 @@ class SearchInput extends LitElement {
|
||||
return html`
|
||||
<ha-textfield
|
||||
.autofocus=${this.autofocus}
|
||||
.label=${this.label || "Search"}
|
||||
.label=${this.label || this.hass.localize("ui.common.search")}
|
||||
.value=${this.filter || ""}
|
||||
icon
|
||||
.iconTrailing=${this.filter || this.suffix}
|
||||
|
@ -166,8 +166,7 @@ export class HaTabsSubpageDataTable extends LitElement {
|
||||
.filter=${this.filter}
|
||||
.suffix=${!this.narrow}
|
||||
@value-changed=${this._handleSearchChange}
|
||||
.label=${this.searchLabel ||
|
||||
this.hass.localize("ui.components.data-table.search")}
|
||||
.label=${this.searchLabel}
|
||||
>
|
||||
${!this.narrow
|
||||
? html`<div
|
||||
|
@ -162,6 +162,7 @@ class HaPanelDevStatistics extends SubscribeMixin(LitElement) {
|
||||
protected render() {
|
||||
return html`
|
||||
<ha-data-table
|
||||
.hass=${this.hass}
|
||||
.columns=${this._columns(this.hass.localize)}
|
||||
.data=${this._displayData(this._data)}
|
||||
noDataText="No statistics"
|
||||
|
@ -280,6 +280,7 @@
|
||||
"edit": "Edit",
|
||||
"submit": "Submit",
|
||||
"rename": "Rename",
|
||||
"search": "[%key:ui::components::data-table::search%]",
|
||||
"ok": "OK",
|
||||
"yes": "Yes",
|
||||
"no": "No",
|
||||
|
Loading…
x
Reference in New Issue
Block a user