From bcc44da7352fcf1ab624d78648cd719cc9b6728b Mon Sep 17 00:00:00 2001 From: tajniak81 <13187254+tajniak81@users.noreply.github.com> Date: Tue, 1 Sep 2026 20:12:05 +0200 Subject: [PATCH] Setting up the connection is not the same as using it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The control card opened with the parts that get touched once — which charger, and where it lives on the network — and only then reached what gets used every day. Split in two: a connection card holding the picker, the address and the connected badge, then a control card holding the tiles and the buttons. The not-connected hint and the error line move up with the connection, since that is what they are about, and the control card simply does not appear until there is a connection to control over. That also retires the inner template that repeated the card's own condition. Co-Authored-By: Claude Opus 5 --- Web App/web/src/i18n/da.json | 1 + Web App/web/src/i18n/en.json | 1 + Web App/web/src/i18n/pl.json | 1 + Web App/web/src/views/Charging.vue | 178 +++++++++++++++-------------- 4 files changed, 95 insertions(+), 86 deletions(-) diff --git a/Web App/web/src/i18n/da.json b/Web App/web/src/i18n/da.json index 02a09a5..6df93ed 100644 --- a/Web App/web/src/i18n/da.json +++ b/Web App/web/src/i18n/da.json @@ -78,6 +78,7 @@ }, "control": { + "connectionTitle": "Laderforbindelse", "title": "Laderstyring", "connected": "Forbundet", "disconnected": "Offline", diff --git a/Web App/web/src/i18n/en.json b/Web App/web/src/i18n/en.json index ed5d965..4e39f50 100644 --- a/Web App/web/src/i18n/en.json +++ b/Web App/web/src/i18n/en.json @@ -64,6 +64,7 @@ "idleHint": "Plug in at a station to start a session." }, "control": { + "connectionTitle": "Charger connection", "title": "Charger control", "connected": "Connected", "disconnected": "Offline", diff --git a/Web App/web/src/i18n/pl.json b/Web App/web/src/i18n/pl.json index 8755bfa..06c6263 100644 --- a/Web App/web/src/i18n/pl.json +++ b/Web App/web/src/i18n/pl.json @@ -80,6 +80,7 @@ }, "control": { + "connectionTitle": "Połączenie z ładowarką", "title": "Sterowanie ładowarką", "connected": "Połączono", "disconnected": "Offline", diff --git a/Web App/web/src/views/Charging.vue b/Web App/web/src/views/Charging.vue index 6277d80..2dd9811 100644 --- a/Web App/web/src/views/Charging.vue +++ b/Web App/web/src/views/Charging.vue @@ -729,7 +729,7 @@ onMounted(async () => {
-

{{ t("charging.control.title") }}

+

{{ t("charging.control.connectionTitle") }}

{{ ctlConnected ? t("charging.control.connected") : t("charging.control.disconnected") }} @@ -802,96 +802,102 @@ onMounted(async () => {
- - -

+ +

{{ ctl?.detail || t(ctlIsModbus ? "charging.control.modbusHint" : "charging.control.connectHint") }}

{{ ctlError }}

+ +
+

{{ t("charging.control.title") }}

+ +
+
+
{{ ctlStatusLabel }}
+
{{ t("charging.control.status") }}
+
+
+
{{ ctlMeterKwh }} kWh
+
{{ t("charging.control.meter") }}
+
+
+ +
+ + +
+ +
+ + +
+ + + +
+
+ + + + + + + +
+

{{ t("charging.control.resetConfirm") }}

+ +
+ + +
+
+
+