2 <h2>Action Set Supervision Url</h2>
3 <h3>Charging Station {{ chargingStationId }}</h3>
4 <p>Supervision Url:</p>
7 v-model.trim="state.supervisionUrl"
17 .setSupervisionUrl(props.hashId, state.supervisionUrl)
19 $toast.success('Supervision url successfully set')
21 .catch((error: Error) => {
22 $toast.error('Error at setting supervision url')
23 console.error('Error at setting supervision url:', error)
26 $router.push({ name: 'charging-stations' })
30 >Set Supervision Url</Button
32 <Button @click="$router.push({ name: 'charging-stations' })">Cancel</Button>
35 <script setup lang="ts">
36 import { getCurrentInstance, reactive } from 'vue'
37 import Button from '@/components/buttons/Button.vue'
39 const props = defineProps<{
41 chargingStationId: string
44 const state = reactive({
48 const uiClient = getCurrentInstance()?.appContext.config.globalProperties.$uiClient