fix(ci): add missing .vue file
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 17 Feb 2024 21:51:09 +0000 (22:51 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 17 Feb 2024 21:51:09 +0000 (22:51 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/components/actions/AddChargingStations.vue [new file with mode: 0644]

diff --git a/ui/web/src/components/actions/AddChargingStations.vue b/ui/web/src/components/actions/AddChargingStations.vue
new file mode 100644 (file)
index 0000000..b1409bb
--- /dev/null
@@ -0,0 +1,20 @@
+<template>
+  <h2>Action Add Charging Stations</h2>
+</template>
+
+<script setup lang="ts">
+import { getCurrentInstance, onMounted } from 'vue'
+
+const app = getCurrentInstance()
+const uiClient = app?.appContext.config.globalProperties.$uiClient
+
+onMounted(() => {
+  uiClient.listTemplates().then((response: ResponsePayload) => {
+    if (app != null && app.appContext.config.globalProperties.$templates == null) {
+      app.appContext.config.globalProperties.$templates = response.templates
+    }
+  })
+})
+</script>
+
+<style></style>