Clarify phase setting for non 1p3p chargers (#12017)

This commit is contained in:
Michael Geers 2024-02-02 19:41:48 +01:00 • committed by GitHub
parent 4c84322c5c
commit 6e087cd20e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 10 deletions

View file

@ -34,6 +34,15 @@
{{ $t("main.loadpointSettings.phasesConfigured.label") }}
</label>
<div class="col-sm-8 pe-0">
<p v-if="!phases1p3p" class="mt-0 mb-2">
<small>
{{
$t(
"main.loadpointSettings.phasesConfigured.no1p3pSupport"
)
}}</small
>
</p>
<div
v-for="phases in phasesOptions"
:key="phases"
@ -179,20 +188,24 @@ export default {
return [PHASES_3, PHASES_1];
},
maxPower: function () {
if (this.phasesConfigured === PHASES_AUTO) {
return this.maxPowerPhases(3);
}
if ([PHASES_3, PHASES_1].includes(this.phasesConfigured)) {
return this.maxPowerPhases(this.phasesConfigured);
if (this.phases1p3p) {
if (this.phasesConfigured === PHASES_AUTO) {
return this.maxPowerPhases(3);
}
if ([PHASES_3, PHASES_1].includes(this.phasesConfigured)) {
return this.maxPowerPhases(this.phasesConfigured);
}
}
return this.fmtKw(this.maxCurrent * V * this.phasesActive);
},
minPower: function () {
if (this.phasesConfigured === PHASES_AUTO) {
return this.minPowerPhases(1);
}
if ([PHASES_3, PHASES_1].includes(this.phasesConfigured)) {
return this.minPowerPhases(this.phasesConfigured);
if (this.phases1p3p) {
if (this.phasesConfigured === PHASES_AUTO) {
return this.minPowerPhases(1);
}
if ([PHASES_3, PHASES_1].includes(this.phasesConfigured)) {
return this.minPowerPhases(this.phasesConfigured);
}
}
return this.fmtKw(this.minCurrent * V * this.phasesActive);
},

View file

@ -233,6 +233,7 @@ label = "Min. Ladung %"
[main.loadpointSettings.phasesConfigured]
label = "Phasen"
no1p3pSupport = "Wie ist deine Wallbox angeschlossen?"
phases_0 = "automatischer Wechsel"
phases_1 = "1-phasig"
phases_1_hint = "({min} bis {max})"

View file

@ -274,6 +274,7 @@ label = "Min. charge %"
[main.loadpointSettings.phasesConfigured]
label = "Phases"
no1p3pSupport = "How is your charger connected?"
phases_0 = "auto-switching"
phases_1 = "1 phase"
phases_1_hint = "({min} to {max})"