2 <h1 id="action">Action</h1>
3 <h2>Set Supervision Url</h2>
4 <h3>Charging Station {{ chargingStationId }}</h3>
5 <p>Supervision Url:</p>
8 v-model.trim="state.supervisionUrl"
10 name="supervision-url"
19 .setSupervisionUrl(hashId, state.supervisionUrl)
21 $toast.success('Supervision url successfully set')
23 .catch((error: Error) => {
24 $toast.error('Error at setting supervision url')
25 console.error('Error at setting supervision url:', error)
28 $router.push({ name: 'charging-stations' })
37 <script setup lang="ts">
38 import { getCurrentInstance, ref } from 'vue'
39 import Button from '@/components/buttons/Button.vue'
43 chargingStationId: string
46 const state = ref<{ supervisionUrl: string }>({
50 const uiClient = getCurrentInstance()?.appContext.config.globalProperties.$uiClient