5 <h2>{{ chargingStationId }}</h2>
6 <h3>Connector {{ connectorId }}</h3>
10 v-model.trim="state.idTag"
12 placeholder="RFID tag"
21 ?.startTransaction(hashId, convertToInt(connectorId), state.idTag)
23 $toast.success('Transaction successfully started')
25 .catch((error: Error) => {
26 $toast.error('Error at starting transaction')
27 console.error('Error at starting transaction:', error)
30 $router.push({ name: 'charging-stations' })
39 <script setup lang="ts">
40 import Button from '@/components/buttons/Button.vue'
41 import { convertToInt } from '@/composables'
42 import { ref } from 'vue'
45 chargingStationId: string
50 const state = ref<{ idTag: string }>({