Commit | Line | Data |
---|---|---|
7086aac2 JB |
1 | <template> |
2 | <h2>Action Add Charging Stations</h2> | |
3 | </template> | |
4 | ||
5 | <script setup lang="ts"> | |
6 | import { getCurrentInstance, onMounted } from 'vue' | |
7 | ||
8 | const app = getCurrentInstance() | |
9 | const uiClient = app?.appContext.config.globalProperties.$uiClient | |
10 | ||
11 | onMounted(() => { | |
12 | uiClient.listTemplates().then((response: ResponsePayload) => { | |
13 | if (app != null && app.appContext.config.globalProperties.$templates == null) { | |
14 | app.appContext.config.globalProperties.$templates = response.templates | |
15 | } | |
16 | }) | |
17 | }) | |
18 | </script> | |
19 | ||
20 | <style></style> |