Loadpoint UI: waiting for auth status text (#27869)

This commit is contained in:
Michael Geers 2026-03-02 16:02:40 +01:00 • committed by GitHub
parent 4d4df0e589
commit a4a4f50d68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 18 additions and 0 deletions

View file

@ -48,6 +48,12 @@ describe("basics", () => {
{ charger: "main.vehicleStatus.waitForVehicle" }
);
});
test("show waiting for authorization if enabled but charger requires auth", () => {
expectEntries(
{ enabled: true, connected: true, chargerStatusReason: "waitingforauthorization" },
{ charger: "main.vehicleStatus.waitForAuthorization" }
);
});
test("vehicle is charging", () => {
expectEntries({ connected: true, charging: true }, { charger: "main.vehicleStatus.charging" });
});

View file

@ -220,6 +220,9 @@ export default defineComponent({
if (this.vehicleLimitReached) {
return t("finished");
}
if (this.chargerStatusReason === REASON_AUTH) {
return t("waitForAuthorization");
}
return t("waitForVehicle");
}

View file

@ -129,6 +129,13 @@ OfflineVehicleWithTarget.args = {
mode: CHARGE_MODE.PV,
};
export const WaitingForAuthorization = Template.bind({});
WaitingForAuthorization.args = {
...baseState,
enabled: true,
chargerStatusReason: "waitingforauthorization",
};
export const VehicleLimit = Template.bind({});
VehicleLimit.args = {
...baseState,

View file

@ -1257,6 +1257,7 @@
"targetChargeWaitForVehicle": "Ladeplan bereit. Warte auf Fahrzeug …",
"vehicleLimit": "Fahrzeuglimit",
"vehicleLimitReached": "Fahrzeuglimit erreicht.",
"waitForAuthorization": "Verbunden. Warte auf Autorisierung …",
"waitForVehicle": "Ladebereit. Warte auf Fahrzeug …",
"welcome": "Kurze initiale Ladung zur Bestätigung der Verbindung."
},

View file

@ -1258,6 +1258,7 @@
"targetChargeWaitForVehicle": "Charging plan ready. Waiting for vehicle…",
"vehicleLimit": "Vehicle limit",
"vehicleLimitReached": "Vehicle limit reached.",
"waitForAuthorization": "Connected. Waiting for authorization…",
"waitForVehicle": "Ready. Waiting for vehicle…",
"welcome": "Short initial charge to confirm connection."
},