From aa80bf245c9c3e20231a6604770b8c29efd6a643 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Tue, 6 Jan 2026 21:08:38 +0100 Subject: [PATCH] Config UI: edit existing ocpp chargers (#26487) --- assets/js/components/Config/ChargerModal.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/assets/js/components/Config/ChargerModal.vue b/assets/js/components/Config/ChargerModal.vue index 975607da9..245426c49 100644 --- a/assets/js/components/Config/ChargerModal.vue +++ b/assets/js/components/Config/ChargerModal.vue @@ -16,7 +16,7 @@ :apply-custom-defaults="applyCustomDefaults" :custom-fields="customFields" :get-product-name="getProductName" - :hide-template-fields="hideTemplateFields" + :hide-template-fields="showOcppOnboarding" @added="$emit('added', $event)" @updated="$emit('updated')" @removed="$emit('removed')" @@ -48,7 +48,7 @@
{{ $t("config.charger.ocppConnected") }} @@ -175,8 +175,11 @@ export default defineComponent({ const stations = this.ocpp.status.stations; return stations.find((station) => station.status === "unknown")?.id; }, - hideTemplateFields(): boolean { - return this.isOcpp && !this.ocppNextStepConfirmed; + showOcppOnboarding(): boolean { + if (!this.isOcpp) return false; + if (this.ocppNextStepConfirmed) return false; + if (this.currentValues.stationid) return false; + return true; }, }, methods: {