mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 18:36:35 +00:00
Set initial focus for energy dialogs (#11730)
This commit is contained in:
parent
494cc3a569
commit
4fc0617289
@ -74,6 +74,7 @@ export class DialogEnergyBatterySettings
|
||||
"ui.panel.config.energy.battery.dialog.energy_into_battery"
|
||||
)}
|
||||
@value-changed=${this._statisticToChanged}
|
||||
dialogInitialFocus
|
||||
></ha-statistic-picker>
|
||||
|
||||
<ha-statistic-picker
|
||||
|
@ -75,6 +75,7 @@ export class DialogEnergyDeviceSettings
|
||||
"ui.panel.config.energy.device_consumption.dialog.device_consumption_energy"
|
||||
)}
|
||||
@value-changed=${this._statisticChanged}
|
||||
dialogInitialFocus
|
||||
></ha-statistic-picker>
|
||||
|
||||
<mwc-button @click=${this.closeDialog} slot="secondaryAction">
|
||||
|
@ -107,6 +107,7 @@ export class DialogEnergyGasSettings
|
||||
: "m³"
|
||||
})`}
|
||||
@value-changed=${this._statisticChanged}
|
||||
dialogInitialFocus
|
||||
></ha-statistic-picker>
|
||||
|
||||
<p>
|
||||
|
@ -104,6 +104,7 @@ export class DialogEnergyGridFlowSettings
|
||||
`ui.panel.config.energy.grid.flow_dialog.${this._params.direction}.energy_stat`
|
||||
)}
|
||||
@value-changed=${this._statisticChanged}
|
||||
dialogInitialFocus
|
||||
></ha-statistic-picker>
|
||||
|
||||
<p>
|
||||
|
@ -86,6 +86,7 @@ export class DialogEnergySolarSettings
|
||||
"ui.panel.config.energy.solar.dialog.solar_production_energy"
|
||||
)}
|
||||
@value-changed=${this._statisticChanged}
|
||||
dialogInitialFocus
|
||||
></ha-statistic-picker>
|
||||
|
||||
<h3>
|
||||
|
Loading…
x
Reference in New Issue
Block a user