perf(ui): use computed ref when possible
[e-mobility-charging-stations-simulator.git] / ui / web / src / components / charging-stations / CSConnector.vue
index d3e37d637e096ce456acc610c16da2b90762171f..36bb971f6c3e0316a3432643aedb4b9463a26e6a 100644 (file)
@@ -10,7 +10,7 @@
     </td>
     <td class="connectors-table__column">
       <ToggleButton
-        :id="`${hashId}-start-transaction`"
+        :id="`${hashId}-${connectorId}-start-transaction`"
         :shared="true"
         :on="
           () => {
             $router.push({ name: 'charging-stations' })
           }
         "
+        @clicked="
+          () => {
+            $emit('need-refresh')
+          }
+        "
       >
         Start Transaction
       </ToggleButton>
@@ -50,6 +55,8 @@ const props = defineProps<{
   atgStatus?: Status
 }>()
 
+const $emit = defineEmits(['need-refresh'])
+
 const uiClient = getCurrentInstance()?.appContext.config.globalProperties.$uiClient
 
 const $toast = useToast()