diff --git a/Web App/web/src/views/Charging.vue b/Web App/web/src/views/Charging.vue index d7c6dd5..81313b3 100644 --- a/Web App/web/src/views/Charging.vue +++ b/Web App/web/src/views/Charging.vue @@ -337,6 +337,23 @@ const ctlStatusLabel = computed(() => { return (ctlReadsDevice.value ? s.statusDesc : s.connectorStatus) || "—"; }); +// And named for whichever of the two it is showing. The tile was called +// "Connector" from when OCPP was the only thing it read: an OCPP connector state +// is what that word means. Reading the charger's own snapshot it holds the +// charger's own status — the same statusDesc the readings card shows as +// "Charging status", so it takes that card's name for it rather than a second +// name for one value. +const ctlStatusTitle = computed(() => + ctlReadsDevice.value ? t("charging.modbus.chargingStatus") : t("charging.control.status") +); + +// The energy tile has the same two readings and the same problem: "Energy" is +// what an OCPP meter total is, and the charger's own snapshot counts this +// session's energy instead. Named from the same card as the status above it. +const ctlMeterTitle = computed(() => + ctlReadsDevice.value ? t("charging.modbus.sessionEnergy") : t("charging.control.meter") +); + // --- The charger's own snapshot, grouped for reading --- // // Reading the charger directly reports far more than OCPP does: one poll carries @@ -2031,11 +2048,11 @@ onMounted(async () => {