+
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 => {