mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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`
|
return html`
|
||||||
<ha-textfield
|
<ha-textfield
|
||||||
.autofocus=${this.autofocus}
|
.autofocus=${this.autofocus}
|
||||||
.label=${this.label || "Search"}
|
.label=${this.label || this.hass.localize("ui.common.search")}
|
||||||
.value=${this.filter || ""}
|
.value=${this.filter || ""}
|
||||||
icon
|
icon
|
||||||
.iconTrailing=${this.filter || this.suffix}
|
.iconTrailing=${this.filter || this.suffix}
|
||||||
|
@ -166,8 +166,7 @@ export class HaTabsSubpageDataTable extends LitElement {
|
|||||||
.filter=${this.filter}
|
.filter=${this.filter}
|
||||||
.suffix=${!this.narrow}
|
.suffix=${!this.narrow}
|
||||||
@value-changed=${this._handleSearchChange}
|
@value-changed=${this._handleSearchChange}
|
||||||
.label=${this.searchLabel ||
|
.label=${this.searchLabel}
|
||||||
this.hass.localize("ui.components.data-table.search")}
|
|
||||||
>
|
>
|
||||||
${!this.narrow
|
${!this.narrow
|
||||||
? html`<div
|
? html`<div
|
||||||
|
@ -162,6 +162,7 @@ class HaPanelDevStatistics extends SubscribeMixin(LitElement) {
|
|||||||
protected render() {
|
protected render() {
|
||||||
return html`
|
return html`
|
||||||
<ha-data-table
|
<ha-data-table
|
||||||
|
.hass=${this.hass}
|
||||||
.columns=${this._columns(this.hass.localize)}
|
.columns=${this._columns(this.hass.localize)}
|
||||||
.data=${this._displayData(this._data)}
|
.data=${this._displayData(this._data)}
|
||||||
noDataText="No statistics"
|
noDataText="No statistics"
|
||||||
|
@ -280,6 +280,7 @@
|
|||||||
"edit": "Edit",
|
"edit": "Edit",
|
||||||
"submit": "Submit",
|
"submit": "Submit",
|
||||||
"rename": "Rename",
|
"rename": "Rename",
|
||||||
|
"search": "[%key:ui::components::data-table::search%]",
|
||||||
"ok": "OK",
|
"ok": "OK",
|
||||||
"yes": "Yes",
|
"yes": "Yes",
|
||||||
"no": "No",
|
"no": "No",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user