fix(ui): rerender shared toggle buttons properly
[e-mobility-charging-stations-simulator.git] / ui / web / src / components / charging-stations / CSTable.vue
index 9371d9622c88f8977a7fb371747b7ce98ee6ce9c..7c4105ae5267133efb9ebc73d2ec648bf2c8646e 100644 (file)
@@ -23,6 +23,7 @@
         v-for="chargingStation in chargingStations"
         :key="chargingStation.stationInfo.hashId"
         :charging-station="chargingStation"
+        @need-refresh="$emit('need-refresh')"
       />
     </tbody>
   </table>
@@ -35,6 +36,8 @@ import type { ChargingStationData } from '@/types'
 defineProps<{
   chargingStations: ChargingStationData[]
 }>()
+
+const $emit = defineEmits(['need-refresh'])
 </script>
 
 <style>