Sessions: relabel solar/total toggle buttons (#30883)

This commit is contained in:
Michael Geers 2026-06-15 12:08:23 +02:00 • committed by GitHub
parent 33d9c3bddb
commit 51eb75d191
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View file

@ -187,6 +187,7 @@ import "@h2d2/shopicons/es/regular/cablecharge";
import "@h2d2/shopicons/es/regular/car3";
import "@h2d2/shopicons/es/regular/eco1";
import "@h2d2/shopicons/es/regular/sun";
import "@h2d2/shopicons/es/regular/lightning";
import formatter, { POWER_UNIT } from "../mixins/formatter";
import api from "../api";
import store from "../store";
@ -212,7 +213,6 @@ import DateNavigator from "../components/Sessions/DateNavigator.vue";
import PeriodHeader from "../components/Sessions/PeriodHeader.vue";
import { handleDownloadClick } from "@/utils/native";
import DynamicPriceIcon from "../components/MaterialIcon/DynamicPrice.vue";
import TotalIcon from "../components/MaterialIcon/Total.vue";
import { TYPES, GROUPS, PERIODS, type Session } from "../components/Sessions/types";
import { defineComponent, type PropType } from "vue";
import { CURRENCY, type Notification } from "@/types/evcc";
@ -565,14 +565,14 @@ export default defineComponent({
},
groupIcons() {
return {
[GROUPS.NONE]: TotalIcon,
[GROUPS.NONE]: "shopicon-regular-sun",
[GROUPS.LOADPOINT]: "shopicon-regular-cablecharge",
[GROUPS.VEHICLE]: "shopicon-regular-car3",
};
},
typeIcons() {
return {
[TYPES.SOLAR]: "shopicon-regular-sun",
[TYPES.SOLAR]: "shopicon-regular-lightning",
[TYPES.PRICE]: DynamicPriceIcon,
[TYPES.CO2]: "shopicon-regular-eco1",
};

View file

@ -1525,7 +1525,7 @@
},
"groupBy": {
"loadpoint": "Ladepunkt",
"none": "Gesamt",
"none": "Sonne",
"vehicle": "Fahrzeug"
},
"loadpoint": "Ladepunkt",
@ -1547,7 +1547,7 @@
"type": {
"co2": "CO₂",
"price": "Kosten",
"solar": "Sonne"
"solar": "Energie"
},
"vehicle": "Fahrzeug"
},

View file

@ -1524,7 +1524,7 @@
},
"groupBy": {
"loadpoint": "Charging point",
"none": "Total",
"none": "Solar",
"vehicle": "Vehicle"
},
"loadpoint": "Charging point",
@ -1546,7 +1546,7 @@
"type": {
"co2": "CO₂",
"price": "Cost",
"solar": "Solar"
"solar": "Energy"
},
"vehicle": "Vehicle"
},