From a032785f1f0b7a9bac07decf597c3cc9ad8b0936 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 3 Apr 2026 17:05:49 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- ui/web/src/components/buttons/ToggleButton.vue | 5 ++++- ui/web/src/views/ChargingStationsView.vue | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ui/web/src/components/buttons/ToggleButton.vue b/ui/web/src/components/buttons/ToggleButton.vue index ab40fd62..dc6ff7fc 100644 --- a/ui/web/src/components/buttons/ToggleButton.vue +++ b/ui/web/src/components/buttons/ToggleButton.vue @@ -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(id, props.status ?? false), diff --git a/ui/web/src/views/ChargingStationsView.vue b/ui/web/src/views/ChargingStationsView.vue index 55c0419e..6e5e5a70 100644 --- a/ui/web/src/views/ChargingStationsView.vue +++ b/ui/web/src/views/ChargingStationsView.vue @@ -13,7 +13,8 @@ @change=" () => { if ( - getFromLocalStorage(UI_SERVER_CONFIGURATION_INDEX_KEY, 0) !== state.uiServerIndex + getFromLocalStorage(UI_SERVER_CONFIGURATION_INDEX_KEY, 0) !== + state.uiServerIndex ) { $uiClient.setConfiguration( ($configuration.uiServer as UIServerConfigurationSection[])[state.uiServerIndex] @@ -22,7 +23,10 @@ $uiClient.registerWSEventListener( 'open', () => { - setToLocalStorage(UI_SERVER_CONFIGURATION_INDEX_KEY, state.uiServerIndex) + setToLocalStorage( + UI_SERVER_CONFIGURATION_INDEX_KEY, + state.uiServerIndex + ) clearToggleButtons() refresh() $route.name !== 'charging-stations' && -- 2.53.0