Skip to content

Commit 689fda2

Browse files
authored
Merge pull request #69 from benderl/dev
minor fixes
2 parents 4be9557 + d13e66f commit 689fda2

File tree

3 files changed

+38
-24
lines changed

3 files changed

+38
-24
lines changed

src/views/ChargePointInstallation.vue

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
>
1010
Wollen Sie den Ladepunkt "{{
1111
getChargePointName(modalChargePointIndex)
12-
}}" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht
13-
werden!
12+
}}" (ID: {{ modalChargePointIndex }}) wirklich entfernen? Dieser Vorgang
13+
kann nicht rückgängig gemacht werden!
1414
</openwb-base-modal-dialog>
1515
<openwb-base-modal-dialog
1616
:show="showChargePointTemplateModal"
@@ -23,8 +23,8 @@
2323
>
2424
Wollen Sie die Ladepunkt-Vorlage "{{
2525
getChargePointTemplateName(modalChargePointTemplateIndex)
26-
}}" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht
27-
werden!
26+
}}" (ID: {{ modalChargePointTemplateIndex }}) wirklich entfernen? Dieser
27+
Vorgang kann nicht rückgängig gemacht werden!
2828
</openwb-base-modal-dialog>
2929
<openwb-base-modal-dialog
3030
:show="showChargePointTemplateAutolockPlanModal"
@@ -92,7 +92,12 @@
9292
installedChargePoint, installedChargePointKey
9393
) in installedChargePoints"
9494
:key="installedChargePointKey"
95-
:title="installedChargePoint.name"
95+
:title="
96+
installedChargePoint.name +
97+
' (ID: ' +
98+
installedChargePoint.id +
99+
')'
100+
"
96101
:collapsible="true"
97102
:collapsed="true"
98103
subtype="primary"
@@ -135,6 +140,13 @@
135140
)
136141
"
137142
/>
143+
<openwb-base-text-input
144+
title="Ladepunkt-Typ"
145+
readonly
146+
:model-value="
147+
$store.state.mqtt[installedChargePointKey].type
148+
"
149+
/>
138150
<hr />
139151
<openwb-base-text-input
140152
title="Verbindungsmodul"
@@ -303,7 +315,12 @@
303315
chargePointTemplate, chargePointTemplateKey
304316
) in chargePointTemplates"
305317
:key="chargePointTemplateKey"
306-
:title="chargePointTemplate.name"
318+
:title="
319+
chargePointTemplate.name +
320+
' (ID: ' +
321+
getChargePointTemplateIndex(chargePointTemplateKey) +
322+
')'
323+
"
307324
:collapsible="true"
308325
:collapsed="true"
309326
subtype="primary"
@@ -774,10 +791,10 @@ export default {
774791
},
775792
getChargePointName(chargePointIndex) {
776793
return this.$store.state.mqtt[
777-
"openWB/chargepoint/" + chargePointIndex
794+
"openWB/chargepoint/" + chargePointIndex + "/config"
778795
]
779796
? this.$store.state.mqtt[
780-
"openWB/chargepoint/" + chargePointIndex
797+
"openWB/chargepoint/" + chargePointIndex + "/config"
781798
].name
782799
: "Ladepunkt " + chargePointIndex;
783800
},
@@ -799,13 +816,15 @@ export default {
799816
data: {},
800817
});
801818
},
819+
getChargePointTemplateIndex(chargePointTemplate) {
820+
// get trailing characters as index
821+
return parseInt(chargePointTemplate.match(/([^/]+)$/)[0]);
822+
},
802823
removeChargePointTemplateModal(chargePointTemplate, event) {
803824
// prevent further processing of the click event
804825
event.stopPropagation();
805-
// get trailing characters as index
806-
this.modalChargePointTemplateIndex = parseInt(
807-
chargePointTemplate.match(/([^/]+)$/)[0]
808-
);
826+
this.modalChargePointTemplateIndex =
827+
this.getChargePointTemplateIndex(chargePointTemplate);
809828
this.showChargePointTemplateModal = true;
810829
},
811830
removeChargePointTemplate(chargePointTemplateIndex, event) {
@@ -828,10 +847,8 @@ export default {
828847
console.info(
829848
"requesting new charge point template autolock plan..."
830849
);
831-
// get trailing characters as index
832-
let chargePointTemplateIndex = parseInt(
833-
chargePointTemplate.match(/([^/]+)$/)[0]
834-
);
850+
let chargePointTemplateIndex =
851+
this.getChargePointTemplateIndex(chargePointTemplate);
835852
this.$emit("sendCommand", {
836853
command: "addAutolockPlan",
837854
data: { template: chargePointTemplateIndex },
@@ -844,10 +861,8 @@ export default {
844861
) {
845862
// prevent further processing of the click event
846863
event.stopPropagation();
847-
// get trailing characters as index
848-
this.modalChargePointTemplateIndex = parseInt(
849-
chargePointTemplate.match(/([^/]+)$/)[0]
850-
);
864+
this.modalChargePointTemplateIndex =
865+
this.getChargePointTemplateIndex(chargePointTemplate);
851866
this.modalChargePointTemplateAutolockPlanIndex = parseInt(
852867
autolockPlan.match(/([^/]+)$/)[0]
853868
);
@@ -892,9 +907,8 @@ export default {
892907
: "Autolock Zeitplan " + templateIndex + "/" + planIndex;
893908
},
894909
getChargePointTemplateAutolockPlans(chargePointTemplate) {
895-
// get trailing characters as index
896910
let chargePointTemplateIndex =
897-
chargePointTemplate.match(/([^/]+)$/)[0];
911+
this.getChargePointTemplateIndex(chargePointTemplate);
898912
let result = this.getWildcardTopics(
899913
"openWB/chargepoint/template/" +
900914
chargePointTemplateIndex +

src/views/Status.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
:key="installedChargePointKey"
4747
:title="
4848
installedChargePoint.name +
49-
' (Ladepunkt ' +
49+
' (ID: ' +
5050
getChargePointIndex(installedChargePointKey) +
5151
')'
5252
"

src/views/VehicleConfig.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@
641641
title="Energie-Limit"
642642
unit="kWh"
643643
:min="5"
644-
:step="5"
644+
:step="1"
645645
:model-value="
646646
template.chargemode.instant_charging.limit
647647
.amount

0 commit comments

Comments
 (0)