Skip to content

Commit

Permalink
Merge pull request #159 from benderl/dev
Browse files Browse the repository at this point in the history
charge template fixes
  • Loading branch information
benderl authored Aug 8, 2022
2 parents e6dd0a1 + 793b347 commit 7056b32
Showing 1 changed file with 48 additions and 2 deletions.
50 changes: 48 additions & 2 deletions src/views/VehicleConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,50 @@
<openwb-base-heading>
Allgemeine Optionen
</openwb-base-heading>
<openwb-base-button-group-input
title="Aktiver Lademodus"
:buttons="[
{
buttonValue: 'instant_charging',
text: 'Sofortladen',
class: 'btn-outline-danger',
},
{
buttonValue: 'pv_charging',
text: 'PV',
class: 'btn-outline-success',
},
{
buttonValue: 'scheduled_charging',
text: 'Zielladen',
class: 'btn-outline-primary',
},
{
buttonValue: 'standby',
text: 'Standby',
class: 'btn-outline-secondary',
},
{
buttonValue: 'stop',
text: 'Stop',
class: 'btn-outline-dark',
},
]"
:model-value="template.chargemode.selected"
@update:model-value="
updateState(
templateKey,
$event,
'chargemode.selected'
)
"
>
<template #help>
Dieser Lademodus ist aktiv, wenn ein zugehöriges
Fahrzeug angesteckt wird. Diese Einstellung
entspricht dem Lademodus auf der Hauptseite.
</template>
</openwb-base-button-group-input>
<openwb-base-button-group-input
title="Priorität"
:buttons="[
Expand Down Expand Up @@ -1008,7 +1052,7 @@
>
<font-awesome-icon
fixed-width
:icon="['fas', 'car-battery']"
:icon="['fas', 'bolt']"
/>
{{ plan.limit.amount / 1000 }}kWh
</span>
Expand Down Expand Up @@ -1516,6 +1560,7 @@ import {
faCalendarWeek as fasCalendarWeek,
faClock as fasClock,
faCarBattery as fasCarBattery,
faBolt as fasBolt,
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
Expand All @@ -1526,7 +1571,8 @@ library.add(
fasCalendarAlt,
fasCalendarWeek,
fasClock,
fasCarBattery
fasCarBattery,
fasBolt
);
import ComponentStateMixin from "@/components/mixins/ComponentState.vue";
Expand Down

0 comments on commit 7056b32

Please sign in to comment.