1
1
<template >
2
2
<openwb-base-heading > Einstellungen für Ladepunkt Typ "{{ chargePoint.type }}" </openwb-base-heading >
3
3
<component
4
- :is =" myChargePointSettingsComponent "
4
+ :is =" getChargePointSettingsComponent() "
5
5
:charge-point =" chargePoint"
6
6
@update:configuration =" updateConfiguration($event)"
7
7
/>
8
8
<hr />
9
9
<openwb-base-heading > Befehle für Ladepunkt Typ "{{ chargePoint.type }}" </openwb-base-heading >
10
10
<component
11
- :is =" myChargePointCommandsComponent "
11
+ :is =" getChargePointCommandsComponent() "
12
12
:charge-point =" chargePoint"
13
13
/>
14
14
</template >
@@ -24,23 +24,21 @@ export default {
24
24
chargePoint: { required: true , type: Object },
25
25
},
26
26
emits: [" update:configuration" ],
27
- computed : {
28
- myChargePointSettingsComponent () {
29
- console .debug (` loading charge point settings: ${ this .chargePoint .name } ( ${ this . chargePoint . type } ) ` );
27
+ methods : {
28
+ getChargePointSettingsComponent () {
29
+ console .debug (` loading charge point settings: ${ this .chargePoint .type } ` );
30
30
return defineAsyncComponent ({
31
31
loader : () => import (` ./${ this .chargePoint .type } /chargePoint.vue` ),
32
32
errorComponent: OpenwbChargePointConfigFallback,
33
33
});
34
34
},
35
- myChargePointCommandsComponent () {
36
- console .debug (` loading charge point commands: ${ this .chargePoint .name } ( ${ this . chargePoint . type } ) ` );
35
+ getChargePointCommandsComponent () {
36
+ console .debug (` loading charge point commands: ${ this .chargePoint .type } ` );
37
37
return defineAsyncComponent ({
38
38
loader : () => import (` ./${ this .chargePoint .type } /commands.vue` ),
39
39
errorComponent: OpenwbChargePointCommandsFallback,
40
40
});
41
41
},
42
- },
43
- methods: {
44
42
updateConfiguration (event ) {
45
43
this .$emit (" update:configuration" , event );
46
44
},
0 commit comments