resetToggleButtonState() only cleared localStorage but never triggered
ToggleButton re-mount, leaving its reactive state stuck on 'active'.
Watch route changes to CHARGING_STATIONS and call refresh() to re-mount
both the header toggle and CSTable children, ensuring all shared toggle
buttons re-read their (now cleared) localStorage entries.
state.value.renderChargingStations = randomUUID()
})
+watch($route, to => {
+ if (to.name === ROUTE_NAMES.CHARGING_STATIONS) {
+ refresh()
+ }
+})
+
const clearTemplates = (): void => {
$templates.value = []
}