]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
refactor(webui): remove redundant CSTable re-mount on toggle
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Apr 2026 12:50:27 +0000 (14:50 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 3 Apr 2026 12:50:57 +0000 (14:50 +0200)
The @clicked handler on the Add Charging Stations toggle
forced a CSTable re-mount on every click. This is unnecessary
since watch($chargingStations) already handles re-renders
when data changes via WS server notifications.

ui/web/src/views/ChargingStationsView.vue

index 8034654fd298348dae9439b88241f08bbdf2c9f7..87623609f5e0bd37222f11a27c8a9c454cd9d550 100644 (file)
           }
         "
         :shared="true"
-        @clicked="
-          () => {
-            state.renderChargingStations = randomUUID()
-          }
-        "
       >
         Add Charging Stations
       </ToggleButton>