mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Rename energy 'Today' button to 'Now' (#20871)
This commit is contained in:
parent
c2737d5cec
commit
085131d546
@ -259,9 +259,9 @@ export class HuiEnergyPeriodSelector extends SubscribeMixin(LitElement) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
${!this.narrow
|
${!this.narrow
|
||||||
? html`<mwc-button dense outlined @click=${this._pickToday}>
|
? html`<mwc-button dense outlined @click=${this._pickNow}>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
"ui.panel.lovelace.components.energy_period_selector.today"
|
"ui.panel.lovelace.components.energy_period_selector.now"
|
||||||
)}
|
)}
|
||||||
</mwc-button>`
|
</mwc-button>`
|
||||||
: nothing}
|
: nothing}
|
||||||
@ -374,7 +374,7 @@ export class HuiEnergyPeriodSelector extends SubscribeMixin(LitElement) {
|
|||||||
this._updateCollectionPeriod();
|
this._updateCollectionPeriod();
|
||||||
}
|
}
|
||||||
|
|
||||||
private _pickToday() {
|
private _pickNow() {
|
||||||
if (!this._startDate) return;
|
if (!this._startDate) return;
|
||||||
|
|
||||||
const range = this._simpleRange(
|
const range = this._simpleRange(
|
||||||
|
@ -6176,7 +6176,7 @@
|
|||||||
"invalid_format": "Invalid display format"
|
"invalid_format": "Invalid display format"
|
||||||
},
|
},
|
||||||
"energy_period_selector": {
|
"energy_period_selector": {
|
||||||
"today": "Today",
|
"now": "Now",
|
||||||
"previous": "Previous",
|
"previous": "Previous",
|
||||||
"next": "Next",
|
"next": "Next",
|
||||||
"compare": "Compare data"
|
"compare": "Compare data"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user