diff --git a/assets/js/components/LimitSocSelect.vue b/assets/js/components/LimitSocSelect.vue index ac3adcbfb..30ed76b98 100644 --- a/assets/js/components/LimitSocSelect.vue +++ b/assets/js/components/LimitSocSelect.vue @@ -35,16 +35,18 @@ export default { heating: Boolean, }, emits: ["limit-soc-updated"], - computed: { options: function () { const result = []; - for (let soc = 20; soc <= 100; soc += 5) { + for (let soc = 20; soc <= 100; soc += this.step) { let text = this.fmtSocOption(soc, this.rangePerSoc, distanceUnit(), this.heating); result.push({ soc, text }); } return result; }, + step: function () { + return this.heating ? 1 : 5; + }, title: function () { return this.heating ? this.$t("main.vehicle.tempLimit") diff --git a/assets/js/components/Vehicle.vue b/assets/js/components/Vehicle.vue index cae5566ab..a7933146f 100644 --- a/assets/js/components/Vehicle.vue +++ b/assets/js/components/Vehicle.vue @@ -21,6 +21,7 @@ :label="vehicleSocTitle" :value="formattedSoc" :extraValue="range ? `${fmtNumber(range, 0)} ${rangeUnit}` : null" + data-testid="current-soc" align="start" /> = 0) { diff --git a/assets/js/components/VehicleStatus.vue b/assets/js/components/VehicleStatus.vue index ce7f0c6c9..c0399790d 100644 --- a/assets/js/components/VehicleStatus.vue +++ b/assets/js/components/VehicleStatus.vue @@ -3,6 +3,7 @@