diff --git a/src/components/EditDFIQObject.vue b/src/components/EditDFIQObject.vue index 550eeab..53812c9 100644 --- a/src/components/EditDFIQObject.vue +++ b/src/components/EditDFIQObject.vue @@ -3,6 +3,15 @@ {{ localObject.name }} Editing DFIQ {{ localObject.type }} +
YAML is valid! @@ -75,7 +84,8 @@ export default { dfiq: "dfiq" }, validatingYaml: false, - yamlValidationError: "" + yamlValidationError: "", + updateApproachIndicators: true }; }, mounted() {}, @@ -100,9 +110,14 @@ export default { saveObject() { let patchRequest = { dfiq_type: this.localObject.type, - dfiq_yaml: this.localObject.dfiq_yaml + dfiq_yaml: this.localObject.dfiq_yaml, + update_indicators: false }; + if (this.localObject.type === "approach") { + patchRequest.update_indicators = this.updateApproachIndicators; + } + axios .patch(`/api/v2/dfiq/${this.localObject.id}`, patchRequest) .then(response => {