2 <h1 id="action">Set Supervision Url</h1>
3 <h2>{{ chargingStationId }}</h2>
4 <p>Supervision Url:</p>
7 v-model.trim="state.supervisionUrl"
18 .setSupervisionUrl(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' })
36 <script setup lang="ts">
37 import { ref } from 'vue'
38 import Button from '@/components/buttons/Button.vue'
42 chargingStationId: string
45 const state = ref<{ supervisionUrl: string }>({