feat(ui): support more charging station options at add op
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 24 Feb 2024 12:25:00 +0000 (13:25 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 24 Feb 2024 12:25:00 +0000 (13:25 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/components/actions/AddChargingStations.vue

index 0ddf612e56a7f441690128d310ed1cadef75fec7..612c8ee8f87796d88d98c4eadaee694c1763f790 100644 (file)
       Auto start:
       <input v-model="state.autoStart" type="checkbox" true-value="true" false-value="false" />
     </li>
+    <li>
+      Persistent configuration:
+      <input
+        v-model="state.persistentConfiguration"
+        type="checkbox"
+        true-value="true"
+        false-value="false"
+      />
+    </li>
+    <li>
+      OCPP strict compliance:
+      <input
+        v-model="state.ocppStrictCompliance"
+        type="checkbox"
+        true-value="true"
+        false-value="false"
+      />
+    </li>
+    <li>
+      Performance statistics:
+      <input
+        v-model="state.enableStatistics"
+        type="checkbox"
+        true-value="true"
+        false-value="false"
+      />
+    </li>
   </ul>
   <br />
   <Button
       () => {
         uiClient
           .addChargingStations(state.template, state.numberOfStations, {
-            autoStart: convertToBoolean(state.autoStart)
+            autoStart: convertToBoolean(state.autoStart),
+            persistentConfiguration: convertToBoolean(state.persistentConfiguration),
+            ocppStrictCompliance: convertToBoolean(state.ocppStrictCompliance),
+            enableStatistics: convertToBoolean(state.enableStatistics)
           })
           .then(() => {
             $toast.success('Charging stations successfully added')
@@ -62,7 +92,10 @@ const state = reactive({
   ready: false,
   template: '',
   numberOfStations: 1,
-  autoStart: false
+  autoStart: false,
+  persistentConfiguration: true,
+  ocppStrictCompliance: true,
+  enableStatistics: false
 })
 
 const app = getCurrentInstance()