Energyflow: ensure same power units (#21493)

This commit is contained in:
Michael Geers 2025-05-28 11:57:34 +02:00 • committed by GitHub
parent fb22b6b52a
commit 2adcf42beb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -130,7 +130,7 @@ export default defineComponent({
this.updateDetailsTooltip();
}
},
powerInKw(newVal, oldVal) {
powerUnit(newVal, oldVal) {
// force update if unit changes but not the value
if (newVal !== oldVal) {
(this.$refs["powerNumber"] as any).forceUpdate();