2 <h2>Action Set Supervision Url</h2>
3 <h3>Charging Station {{ chargingStationId }}</h3>
4 <p>Supervision Url:</p>
7 v-model="state.supervisionUrl"
10 placeholder="supervision url"
17 .setSupervisionUrl(props.hashId, state.supervisionUrl)
18 .catch((error: Error) => {
19 // TODO: add code for UI notifications or other error handling logic
20 console.error('Error at setting supervision url:', error)
23 $router.push({ name: 'charging-stations' })
27 >Set Supervision Url</Button
29 <Button @click="$router.push({ name: 'charging-stations' })">Cancel</Button>
32 <script setup lang="ts">
33 import { getCurrentInstance, reactive } from 'vue'
34 import Button from '@/components/buttons/Button.vue'
36 const props = defineProps<{
38 chargingStationId: string
41 const state = reactive({
45 const uiClient = getCurrentInstance()?.appContext.config.globalProperties.$uiClient