From: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 3 Apr 2026 17:05:49 +0000 (+0000) Subject: [autofix.ci] apply automated fixes X-Git-Tag: ocpp-server@v4.3.0~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a032785f1f0b7a9bac07decf597c3cc9ad8b0936;p=e-mobility-charging-stations-simulator.git [autofix.ci] apply automated fixes --- 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' &&