2 <h1 id="action">Start Transaction</h1>
3 <h2>{{ chargingStationId }}</h2>
4 <h3>Connector {{ connectorId }}</h3>
6 <input id="idtag" v-model.trim="state.idTag" type="text" name="idtag" placeholder="RFID tag" />
13 .startTransaction(hashId, convertToInt(connectorId), state.idTag)
15 $toast.success('Transaction successfully started')
17 .catch((error: Error) => {
18 $toast.error('Error at starting transaction')
19 console.error('Error at starting transaction:', error)
22 $router.push({ name: 'charging-stations' })
31 <script setup lang="ts">
32 import { ref } from 'vue'
34 import Button from '@/components/buttons/Button.vue'
35 import { convertToInt } from '@/composables'
39 chargingStationId: string
43 const state = ref<{ idTag: string }>({