@click="
() => {
uiClient
- .setSupervisionUrl(props.hashId, state.supervisionUrl)
+ .setSupervisionUrl(hashId, state.supervisionUrl)
.then(() => {
$toast.success('Supervision url successfully set')
})
>
Set Supervision Url
</Button>
- <Button id="action-button" @click="$router.push({ name: 'charging-stations' })">Cancel</Button>
</template>
<script setup lang="ts">
-import { defineProps, getCurrentInstance, reactive } from 'vue'
+import { getCurrentInstance, ref } from 'vue'
import Button from '@/components/buttons/Button.vue'
-const props = defineProps<{
+defineProps<{
hashId: string
chargingStationId: string
}>()
-const state = reactive({
+const state = ref({
supervisionUrl: ''
})