repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor(ui): use watchers to refresh display
[e-mobility-charging-stations-simulator.git]
/
ui
/
web
/
src
/
components
/
actions
/
SetSupervisionUrl.vue
diff --git
a/ui/web/src/components/actions/SetSupervisionUrl.vue
b/ui/web/src/components/actions/SetSupervisionUrl.vue
index 1406db53919cf4595e0dfcf9c0dacd3ccad9f748..887b1d4ce42bee2b0a0dd86e910fc4c455081c76 100644
(file)
--- a/
ui/web/src/components/actions/SetSupervisionUrl.vue
+++ b/
ui/web/src/components/actions/SetSupervisionUrl.vue
@@
-1,7
+1,6
@@
<template>
<template>
- <h1 id="action">Action</h1>
- <h2>Set Supervision Url</h2>
- <h3>Charging Station {{ chargingStationId }}</h3>
+ <h1 id="action">Set Supervision Url</h1>
+ <h2>{{ chargingStationId }}</h2>
<p>Supervision Url:</p>
<input
id="supervision-url"
<p>Supervision Url:</p>
<input
id="supervision-url"
@@
-15,7
+14,7
@@
id="action-button"
@click="
() => {
id="action-button"
@click="
() => {
- uiClient
+
$
uiClient
.setSupervisionUrl(hashId, state.supervisionUrl)
.then(() => {
$toast.success('Supervision url successfully set')
.setSupervisionUrl(hashId, state.supervisionUrl)
.then(() => {
$toast.success('Supervision url successfully set')
@@
-35,7
+34,7
@@
</template>
<script setup lang="ts">
</template>
<script setup lang="ts">
-import {
getCurrentInstance,
ref } from 'vue'
+import { ref } from 'vue'
import Button from '@/components/buttons/Button.vue'
defineProps<{
import Button from '@/components/buttons/Button.vue'
defineProps<{
@@
-46,8
+45,6
@@
defineProps<{
const state = ref<{ supervisionUrl: string }>({
supervisionUrl: ''
})
const state = ref<{ supervisionUrl: string }>({
supervisionUrl: ''
})
-
-const uiClient = getCurrentInstance()?.appContext.config.globalProperties.$uiClient
</script>
<style>
</script>
<style>