diff --git a/src/plugins/condition/components/Condition.vue b/src/plugins/condition/components/Condition.vue index f518c5f7e3..ec68d729e5 100644 --- a/src/plugins/condition/components/Condition.vue +++ b/src/plugins/condition/components/Condition.vue @@ -55,7 +55,7 @@ export default { }, methods: { handleConditionResult(args) { - this.$emit('condition-result-updated', { + this.$emit('conditionResultUpdated', { id: this.conditionIdentifier, result: args.data.result }) diff --git a/src/plugins/condition/components/ConditionCollection.vue b/src/plugins/condition/components/ConditionCollection.vue index ddb8fad8ab..fda6fa9033 100644 --- a/src/plugins/condition/components/ConditionCollection.vue +++ b/src/plugins/condition/components/ConditionCollection.vue @@ -75,10 +75,18 @@
-
- - + @update-current-condition="updateCurrentCondition" + @remove-condition="removeCondition" + @condition-result-updated="handleConditionResult" + /> + +
+ +
+ @@ -189,16 +197,16 @@ export default { break; } } - this.$emit('current-condition-updated', currentConditionIdentifier); + this.$emit('currentConditionUpdated', currentConditionIdentifier); }, addTelemetry(telemetryDomainObject) { this.telemetryObjs.push(telemetryDomainObject); }, addCondition(event, isDefault) { - let conditionDO = this.getConditionDomainObject(!!isDefault); - //persist the condition DO so that we can do an openmct.objects.get on it and only persist the identifier in the conditionCollection of conditionSet - this.openmct.objects.mutate(conditionDO, 'created', new Date()); - this.conditionCollection.unshift(conditionDO.identifier); + let conditionDomainObject = this.getConditionDomainObject(!!isDefault); + //persist the condition domain object so that we can do an openmct.objects.get on it and only persist the identifier in the conditionCollection of conditionSet + this.openmct.objects.mutate(conditionDomainObject, 'created', new Date()); + this.conditionCollection.unshift(conditionDomainObject.identifier); this.persist(); }, updateCurrentCondition(identifier) { @@ -224,10 +232,10 @@ export default { }, summary: 'summary description' }; - let conditionDOKeyString = this.openmct.objects.makeKeyString(conditionObj.identifier); - let newDO = this.instantiate(conditionObj, conditionDOKeyString); + let conditionDomainObjectKeyString = this.openmct.objects.makeKeyString(conditionObj.identifier); + let newDomainObject = this.instantiate(conditionObj, conditionDomainObjectKeyString); - return newDO.useCapability('adapter'); + return newDomainObject.useCapability('adapter'); }, updateCondition(updatedCondition) { //TODO: this should only happen for reordering diff --git a/src/plugins/condition/components/ConditionEdit.vue b/src/plugins/condition/components/ConditionEdit.vue index 6660e4e241..5a50c73e2a 100644 --- a/src/plugins/condition/components/ConditionEdit.vue +++ b/src/plugins/condition/components/ConditionEdit.vue @@ -118,7 +118,7 @@ -