9
9
>
10
10
Wollen Sie den Ladepunkt "{{
11
11
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!
14
14
</openwb-base-modal-dialog >
15
15
<openwb-base-modal-dialog
16
16
:show =" showChargePointTemplateModal"
23
23
>
24
24
Wollen Sie die Ladepunkt-Vorlage "{{
25
25
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!
28
28
</openwb-base-modal-dialog >
29
29
<openwb-base-modal-dialog
30
30
:show =" showChargePointTemplateAutolockPlanModal"
92
92
installedChargePoint, installedChargePointKey
93
93
) in installedChargePoints"
94
94
:key =" installedChargePointKey"
95
- :title =" installedChargePoint.name"
95
+ :title ="
96
+ installedChargePoint.name +
97
+ ' (ID: ' +
98
+ installedChargePoint.id +
99
+ ')'
100
+ "
96
101
:collapsible =" true"
97
102
:collapsed =" true"
98
103
subtype =" primary"
135
140
)
136
141
"
137
142
/>
143
+ <openwb-base-text-input
144
+ title =" Ladepunkt-Typ"
145
+ readonly
146
+ :model-value ="
147
+ $store.state.mqtt[installedChargePointKey].type
148
+ "
149
+ />
138
150
<hr />
139
151
<openwb-base-text-input
140
152
title =" Verbindungsmodul"
303
315
chargePointTemplate, chargePointTemplateKey
304
316
) in chargePointTemplates"
305
317
:key =" chargePointTemplateKey"
306
- :title =" chargePointTemplate.name"
318
+ :title ="
319
+ chargePointTemplate.name +
320
+ ' (ID: ' +
321
+ getChargePointTemplateIndex(chargePointTemplateKey) +
322
+ ')'
323
+ "
307
324
:collapsible =" true"
308
325
:collapsed =" true"
309
326
subtype =" primary"
@@ -774,10 +791,10 @@ export default {
774
791
},
775
792
getChargePointName (chargePointIndex ) {
776
793
return this .$store .state .mqtt [
777
- " openWB/chargepoint/" + chargePointIndex
794
+ " openWB/chargepoint/" + chargePointIndex + " /config "
778
795
]
779
796
? this .$store .state .mqtt [
780
- " openWB/chargepoint/" + chargePointIndex
797
+ " openWB/chargepoint/" + chargePointIndex + " /config "
781
798
].name
782
799
: " Ladepunkt " + chargePointIndex;
783
800
},
@@ -799,13 +816,15 @@ export default {
799
816
data: {},
800
817
});
801
818
},
819
+ getChargePointTemplateIndex (chargePointTemplate ) {
820
+ // get trailing characters as index
821
+ return parseInt (chargePointTemplate .match (/ ([^ /] + )$ / )[0 ]);
822
+ },
802
823
removeChargePointTemplateModal (chargePointTemplate , event ) {
803
824
// prevent further processing of the click event
804
825
event .stopPropagation ();
805
- // get trailing characters as index
806
- this .modalChargePointTemplateIndex = parseInt (
807
- chargePointTemplate .match (/ ([^ /] + )$ / )[0 ]
808
- );
826
+ this .modalChargePointTemplateIndex =
827
+ this .getChargePointTemplateIndex (chargePointTemplate);
809
828
this .showChargePointTemplateModal = true ;
810
829
},
811
830
removeChargePointTemplate (chargePointTemplateIndex , event ) {
@@ -828,10 +847,8 @@ export default {
828
847
console .info (
829
848
" requesting new charge point template autolock plan..."
830
849
);
831
- // get trailing characters as index
832
- let chargePointTemplateIndex = parseInt (
833
- chargePointTemplate .match (/ ([^ /] + )$ / )[0 ]
834
- );
850
+ let chargePointTemplateIndex =
851
+ this .getChargePointTemplateIndex (chargePointTemplate);
835
852
this .$emit (" sendCommand" , {
836
853
command: " addAutolockPlan" ,
837
854
data: { template: chargePointTemplateIndex },
@@ -844,10 +861,8 @@ export default {
844
861
) {
845
862
// prevent further processing of the click event
846
863
event .stopPropagation ();
847
- // get trailing characters as index
848
- this .modalChargePointTemplateIndex = parseInt (
849
- chargePointTemplate .match (/ ([^ /] + )$ / )[0 ]
850
- );
864
+ this .modalChargePointTemplateIndex =
865
+ this .getChargePointTemplateIndex (chargePointTemplate);
851
866
this .modalChargePointTemplateAutolockPlanIndex = parseInt (
852
867
autolockPlan .match (/ ([^ /] + )$ / )[0 ]
853
868
);
@@ -892,9 +907,8 @@ export default {
892
907
: " Autolock Zeitplan " + templateIndex + " /" + planIndex;
893
908
},
894
909
getChargePointTemplateAutolockPlans (chargePointTemplate ) {
895
- // get trailing characters as index
896
910
let chargePointTemplateIndex =
897
- chargePointTemplate . match ( / ( [ ^ /] + ) $ / )[ 0 ] ;
911
+ this . getChargePointTemplateIndex (chargePointTemplate) ;
898
912
let result = this .getWildcardTopics (
899
913
" openWB/chargepoint/template/" +
900
914
chargePointTemplateIndex +
0 commit comments