2 <h2>Action Start Transaction</h2>
3 <h3>Connector {{ connectorId }} on {{ chargingStationId }}</h3>
5 <input id="idtag" v-model.trim="state.idTag" type="text" name="idtag" placeholder="RFID tag" />
11 .startTransaction(props.hashId, parseInt(props.connectorId), state.idTag)
13 $toast.success('Transaction successfully started')
15 .catch((error: Error) => {
16 $toast.error('Error at starting transaction')
17 console.error('Error at starting transaction:', error)
20 $router.push({ name: 'charging-stations' })
24 >Start Transaction</Button
26 <Button @click="$router.push({ name: 'charging-stations' })">Cancel</Button>
29 <script setup lang="ts">
30 import { getCurrentInstance, reactive } from 'vue'
31 import Button from '@/components/buttons/Button.vue'
33 const props = defineProps<{
35 chargingStationId: string
39 const state = reactive({
43 const uiClient = getCurrentInstance()?.appContext.config.globalProperties.$uiClient