refactor: cleanup event handling callbacks
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 22 Nov 2024 21:47:16 +0000 (22:47 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 22 Nov 2024 21:47:16 +0000 (22:47 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
ui/web/src/components/charging-stations/CSConnector.vue
ui/web/src/components/charging-stations/CSData.vue

index 8f19083b96a67f941814f2b4d859022e68ae0dfa..618e4036b486756f8ee8cdb330d5824bcd9c8281 100644 (file)
           }
         "
         :shared="true"
-        @clicked="
-          () => {
-            $emit('need-refresh')
-          }
-        "
+        @clicked="$emit('need-refresh')"
       >
         Start Transaction
       </ToggleButton>
index d735ca32dfeac3a7b7f54d027d6fea6e1d26e7b0..8496d6a81189ae5305f02359861668cf9956de3d 100644 (file)
           }
         "
         :shared="true"
-        @clicked="
-          () => {
-            $emit('need-refresh')
-          }
-        "
+        @clicked="$emit('need-refresh')"
       >
         Set Supervision Url
       </ToggleButton>