2 <h2>Action Start Transaction</h2>
3 <h3>Connector {{ connectorId }} on {{ chargingStationId }}</h3>
5 <input id="idtag" v-model="state.idTag" type="text" name="idtag" placeholder="RFID tag" />
11 .startTransaction(props.hashId, parseInt(props.connectorId), state.idTag)
12 .catch((error: Error) => {
13 // TODO: add code for UI notifications or other error handling logic
14 console.error('Error at starting transaction:', error)
17 $router.push({ name: 'charging-stations' })
21 >Start Transaction</Button
25 <script setup lang="ts">
26 import { getCurrentInstance, reactive } from 'vue'
27 import Button from '@/components/buttons/Button.vue'
29 const props = defineProps<{
31 chargingStationId: string
35 const state = reactive({
39 const uiClient = getCurrentInstance()?.appContext.config.globalProperties.$uiClient