]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
[autofix.ci] apply automated fixes
authorautofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Fri, 3 Apr 2026 17:05:49 +0000 (17:05 +0000)
committerGitHub <noreply@github.com>
Fri, 3 Apr 2026 17:05:49 +0000 (17:05 +0000)
ui/web/src/components/buttons/ToggleButton.vue
ui/web/src/views/ChargingStationsView.vue

index ab40fd6225eeef26a91370c2debc782aa88d4dab..dc6ff7fc96e1241927721285cb483f61216f1e61 100644 (file)
@@ -28,7 +28,10 @@ const props = defineProps<{
 
 const $emit = defineEmits(['clicked'])
 
-const id = props.shared === true ? `${SHARED_TOGGLE_BUTTON_KEY_PREFIX}${props.id}` : `${TOGGLE_BUTTON_KEY_PREFIX}${props.id}`
+const id =
+  props.shared === true
+    ? `${SHARED_TOGGLE_BUTTON_KEY_PREFIX}${props.id}`
+    : `${TOGGLE_BUTTON_KEY_PREFIX}${props.id}`
 
 const state = ref<{ status: boolean }>({
   status: getFromLocalStorage<boolean>(id, props.status ?? false),
index 55c0419e8f40c605a408678a0145fedeb1804758..6e5e5a70fc4d205744c1ce11229d4e40bbc46596 100644 (file)
@@ -13,7 +13,8 @@
           @change="
             () => {
               if (
-                getFromLocalStorage<number>(UI_SERVER_CONFIGURATION_INDEX_KEY, 0) !== state.uiServerIndex
+                getFromLocalStorage<number>(UI_SERVER_CONFIGURATION_INDEX_KEY, 0) !==
+                state.uiServerIndex
               ) {
                 $uiClient.setConfiguration(
                   ($configuration.uiServer as UIServerConfigurationSection[])[state.uiServerIndex]
                 $uiClient.registerWSEventListener(
                   'open',
                   () => {
-                    setToLocalStorage<number>(UI_SERVER_CONFIGURATION_INDEX_KEY, state.uiServerIndex)
+                    setToLocalStorage<number>(
+                      UI_SERVER_CONFIGURATION_INDEX_KEY,
+                      state.uiServerIndex
+                    )
                     clearToggleButtons()
                     refresh()
                     $route.name !== 'charging-stations' &&