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: {