Add unknown vehicle status to new design (#3332)
This commit is contained in:
parent
635f47dce1
commit
3df9569bf3
6 changed files with 20 additions and 10 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<div class="d-flex justify-content-between mb-3 align-items-center">
|
||||
<h4 class="d-flex align-items-center m-0 flex-grow-1 overflow-hidden">
|
||||
<shopicon-regular-car3
|
||||
v-if="vehiclePresent || parked"
|
||||
v-if="carIcon"
|
||||
class="me-2 flex-shrink-0 car-icon"
|
||||
></shopicon-regular-car3>
|
||||
<shopicon-regular-cablecharge
|
||||
|
|
@ -31,13 +31,20 @@ export default {
|
|||
vehiclePresent: Boolean,
|
||||
vehicleTitle: String,
|
||||
parked: Boolean,
|
||||
connected: Boolean,
|
||||
},
|
||||
computed: {
|
||||
carIcon() {
|
||||
return this.connected || this.parked;
|
||||
},
|
||||
name() {
|
||||
if (this.vehiclePresent || this.parked) {
|
||||
return this.vehicleTitle || this.$t("main.vehicle.fallbackName");
|
||||
}
|
||||
return this.$t("main.vehicle.noVehicle");
|
||||
if (this.connected) {
|
||||
return this.$t("main.vehicle.unknown");
|
||||
}
|
||||
return this.$t("main.vehicle.none");
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -90,7 +90,8 @@ export default {
|
|||
fallbackName: "Fahrzeug",
|
||||
vehicleSoC: "Ladestand",
|
||||
targetSoC: "Ladeziel",
|
||||
noVehicle: "Kein Fahrzeug",
|
||||
none: "Kein Fahrzeug",
|
||||
unknown: "Gastfahrzeug",
|
||||
},
|
||||
vehicleSoC: {
|
||||
disconnected: "getrennt",
|
||||
|
|
|
|||
|
|
@ -90,7 +90,8 @@ export default {
|
|||
fallbackName: "Vehicle",
|
||||
vehicleSoC: "SoC",
|
||||
targetSoC: "Limit",
|
||||
noVehicle: "No vehicle",
|
||||
none: "No vehicle",
|
||||
unknown: "Guest vehicle",
|
||||
},
|
||||
vehicleSoC: {
|
||||
disconnected: "disconnected",
|
||||
|
|
|
|||
|
|
@ -89,7 +89,8 @@ export default {
|
|||
fallbackName: "Automobilis",
|
||||
vehicleSoC: "Įkrova",
|
||||
targetSoC: "Limitas",
|
||||
noVehicle: "Nėra automobilio",
|
||||
none: "Nėra automobilio",
|
||||
unknown: "Nežinomas automobilis",
|
||||
},
|
||||
vehicleSoC: {
|
||||
disconnected: "neprijungtas",
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
|
|
@ -20,7 +20,7 @@
|
|||
<meta name="theme-color" content="#28293e" />
|
||||
|
||||
<title>evcc</title>
|
||||
<script type="module" crossorigin src="./assets/index.eb012e12.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index.d8d48e97.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.9aa9be50.css">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue