2 <h2>Action Set Supervision Url</h2>
3 <h3>Charging Station {{ chargingStationId }}</h3>
4 <p>Supervision Url:</p>
7 v-model.trim="state.supervisionUrl"
18 .setSupervisionUrl(props.hashId, state.supervisionUrl)
20 $toast.success('Supervision url successfully set')
22 .catch((error: Error) => {
23 $toast.error('Error at setting supervision url')
24 console.error('Error at setting supervision url:', error)
27 $router.push({ name: 'charging-stations' })
34 <Button id="action-button" @click="$router.push({ name: 'charging-stations' })">Cancel</Button>
37 <script setup lang="ts">
38 import { getCurrentInstance, reactive } from 'vue'
39 import Button from '@/components/buttons/Button.vue'
41 const props = defineProps<{
43 chargingStationId: string
46 const state = reactive({
50 const uiClient = getCurrentInstance()?.appContext.config.globalProperties.$uiClient