mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +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>
|
||||
|
||||
${!this.narrow
|
||||
? html`<mwc-button dense outlined @click=${this._pickToday}>
|
||||
? html`<mwc-button dense outlined @click=${this._pickNow}>
|
||||
${this.hass.localize(
|
||||
"ui.panel.lovelace.components.energy_period_selector.today"
|
||||
"ui.panel.lovelace.components.energy_period_selector.now"
|
||||
)}
|
||||
</mwc-button>`
|
||||
: nothing}
|
||||
@ -374,7 +374,7 @@ export class HuiEnergyPeriodSelector extends SubscribeMixin(LitElement) {
|
||||
this._updateCollectionPeriod();
|
||||
}
|
||||
|
||||
private _pickToday() {
|
||||
private _pickNow() {
|
||||
if (!this._startDate) return;
|
||||
|
||||
const range = this._simpleRange(
|
||||
|
@ -6176,7 +6176,7 @@
|
||||
"invalid_format": "Invalid display format"
|
||||
},
|
||||
"energy_period_selector": {
|
||||
"today": "Today",
|
||||
"now": "Now",
|
||||
"previous": "Previous",
|
||||
"next": "Next",
|
||||
"compare": "Compare data"
|
||||
|
Loading…
x
Reference in New Issue
Block a user