diff --git a/api/globalconfig/types.go b/api/globalconfig/types.go index 4925bae63..036670214 100644 --- a/api/globalconfig/types.go +++ b/api/globalconfig/types.go @@ -20,11 +20,19 @@ import ( // ConfigStatus for publishing config, status and source to UI and external systems type ConfigStatus struct { - Config any `json:"config,omitempty"` - Status any `json:"status,omitempty"` - FromYaml bool `json:"fromYaml,omitempty"` + Config any `json:"config,omitempty"` + Status any `json:"status,omitempty"` + YamlSource YamlSource `json:"yamlSource,omitempty"` } +type YamlSource string + +const ( + YamlSourceFile YamlSource = "file" + YamlSourceDb YamlSource = "db" + YamlSourceNone YamlSource = "" +) + type All struct { Network Network Ocpp ocpp.Config diff --git a/assets/js/components/Config/EebusModal.vue b/assets/js/components/Config/EebusModal.vue index b1ca92561..924fae33e 100644 --- a/assets/js/components/Config/EebusModal.vue +++ b/assets/js/components/Config/EebusModal.vue @@ -119,7 +119,7 @@