Loadpoint UI: waiting for auth status text (#27869)
This commit is contained in:
parent
4d4df0e589
commit
a4a4f50d68
5 changed files with 18 additions and 0 deletions
|
|
@ -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" });
|
||||
});
|
||||
|
|
|
|||
|
|
@ -220,6 +220,9 @@ export default defineComponent({
|
|||
if (this.vehicleLimitReached) {
|
||||
return t("finished");
|
||||
}
|
||||
if (this.chargerStatusReason === REASON_AUTH) {
|
||||
return t("waitForAuthorization");
|
||||
}
|
||||
return t("waitForVehicle");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue