mirror of
https://github.com/nasa/openmct.git
synced 2025-06-01 15:10:50 +00:00
updateTemetry failing to return object on line 328
This commit is contained in:
parent
096d6371f1
commit
fc03b3a79d
@ -233,8 +233,8 @@ export default {
|
|||||||
criteria: isDefault ? [] : [{
|
criteria: isDefault ? [] : [{
|
||||||
operation: '',
|
operation: '',
|
||||||
input: '',
|
input: '',
|
||||||
metaDataKey: '',
|
metaDataKey: this.openmct.telemetry.getMetadata(this.telemetryObjs[0]).values()[0].key,
|
||||||
key: ''
|
key: this.telemetryObjs.length ? this.openmct.objects.makeKeyString(this.telemetryObjs[0].identifier) : null,
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
summary: 'summary description'
|
summary: 'summary description'
|
||||||
|
@ -247,6 +247,7 @@ export default {
|
|||||||
},
|
},
|
||||||
initialize() {
|
initialize() {
|
||||||
if (this.condition.definition.criteria.length) {
|
if (this.condition.definition.criteria.length) {
|
||||||
|
console.log('initialize found criteria')
|
||||||
this.setCurrentCriterion(0);
|
this.setCurrentCriterion(0);
|
||||||
this.setOutput();
|
this.setOutput();
|
||||||
this.setOperation();
|
this.setOperation();
|
||||||
@ -290,7 +291,7 @@ export default {
|
|||||||
this.$emit('removeCondition', this.conditionIdentifier);
|
this.$emit('removeCondition', this.conditionIdentifier);
|
||||||
},
|
},
|
||||||
cloneCondition(ev) {
|
cloneCondition(ev) {
|
||||||
this.$emit('clone-condition', {
|
this.$emit('cloneCondition', {
|
||||||
identifier: this.conditionIdentifier,
|
identifier: this.conditionIdentifier,
|
||||||
index: Number(ev.target.closest('.widget-condition').getAttribute('data-condition-index'))
|
index: Number(ev.target.closest('.widget-condition').getAttribute('data-condition-index'))
|
||||||
});
|
});
|
||||||
@ -321,9 +322,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
updateTelemetry() {
|
updateTelemetry() {
|
||||||
|
console.log('this.currentCriteria', this.currentCriteria);
|
||||||
if (this.hasTelemetry()) {
|
if (this.hasTelemetry()) {
|
||||||
|
console.log('this.currentCriteria.key', this.currentCriteria.key);
|
||||||
this.openmct.objects.get(this.currentCriteria.key).then((obj) => {
|
this.openmct.objects.get(this.currentCriteria.key).then((obj) => {
|
||||||
console.log('this.openmct.telemetry.getMetadata(this.telemetryObject).values()', this.openmct.telemetry.getMetadata(this.telemetryObject).values());
|
console.log('this.telemetryObject', this.telemetryObject);
|
||||||
this.telemetryObject = obj;
|
this.telemetryObject = obj;
|
||||||
this.telemetryMetadata[this.currentCriteria.key] = this.openmct.telemetry.getMetadata(this.telemetryObject).values();
|
this.telemetryMetadata[this.currentCriteria.key] = this.openmct.telemetry.getMetadata(this.telemetryObject).values();
|
||||||
this.selectedMetaDataKey[this.currentCriteria.key] = this.getTelemetryMetadataKey();
|
this.selectedMetaDataKey[this.currentCriteria.key] = this.getTelemetryMetadataKey();
|
||||||
@ -355,6 +358,10 @@ export default {
|
|||||||
return this.telemetry.length && index > -1 ? this.telemetry[index].identifier : '';
|
return this.telemetry.length && index > -1 ? this.telemetry[index].identifier : '';
|
||||||
},
|
},
|
||||||
hasTelemetry() {
|
hasTelemetry() {
|
||||||
|
if (this.currentCriteria && this.currentCriteria.key) {
|
||||||
|
console.log('hasTelemetry() returns true');
|
||||||
|
}
|
||||||
|
// console.log('this.currentCriteria', this.currentCriteria);
|
||||||
return this.currentCriteria && this.currentCriteria.key;
|
return this.currentCriteria && this.currentCriteria.key;
|
||||||
},
|
},
|
||||||
updateConditionCriteria() {
|
updateConditionCriteria() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user