diff --git a/src/plugins/condition/ConditionSetTelemetryProvider.js b/src/plugins/condition/ConditionSetTelemetryProvider.js index f462d9ccbf..513b16a2eb 100644 --- a/src/plugins/condition/ConditionSetTelemetryProvider.js +++ b/src/plugins/condition/ConditionSetTelemetryProvider.js @@ -4,6 +4,9 @@ export default class ConditionSetTelemetryProvider { constructor(openmct) { this.openmct = openmct; } + isTelemetryObject(domainObject) { + return domainObject.type === 'conditionSet'; + } supportsRequest(domainObject, options) { return false; diff --git a/src/plugins/condition/ConditionSetViewProvider.js b/src/plugins/condition/ConditionSetViewProvider.js index 91bd2f5409..43eb436f7e 100644 --- a/src/plugins/condition/ConditionSetViewProvider.js +++ b/src/plugins/condition/ConditionSetViewProvider.js @@ -23,6 +23,8 @@ import ConditionSet from './components/ConditionSet.vue'; import Vue from 'vue'; +const DEFAULT_VIEW_PRIORITY = 100; + export default class ConditionSetViewProvider { constructor(openmct) { this.openmct = openmct; @@ -71,4 +73,12 @@ export default class ConditionSetViewProvider { } }; } + + priority(domainObject) { + if (domainObject.type === 'conditionSet') { + return Number.MAX_VALUE; + } else { + return DEFAULT_VIEW_PRIORITY; + } + } } diff --git a/src/plugins/condition/plugin.js b/src/plugins/condition/plugin.js index 691e088d0c..dc485f4573 100644 --- a/src/plugins/condition/plugin.js +++ b/src/plugins/condition/plugin.js @@ -48,6 +48,7 @@ export default function ConditionPlugin() { conditionCollection: [] }; domainObject.composition = []; + domainObject.telemetry = {}; } });