diff --git a/src/plugins/condition/ConditionSetViewProvider.js b/src/plugins/condition/ConditionSetViewProvider.js index 38a3d65726..267f10718c 100644 --- a/src/plugins/condition/ConditionSetViewProvider.js +++ b/src/plugins/condition/ConditionSetViewProvider.js @@ -58,7 +58,7 @@ export default class ConditionSetViewProvider { isEditing } }, - template: '' + template: '' }); }, onEditModeChange: (isEditing) => { diff --git a/src/plugins/condition/components/ConditionCollection.vue b/src/plugins/condition/components/ConditionCollection.vue index 2c46b02dc0..83c0e21438 100644 --- a/src/plugins/condition/components/ConditionCollection.vue +++ b/src/plugins/condition/components/ConditionCollection.vue @@ -95,12 +95,12 @@ export default { data() { return { expanded: true, - telemetryObjs: [], parentKeyString: this.openmct.objects.makeKeyString(this.domainObject.identifier), conditionCollection: [], conditionResults: {}, conditions: [], currentConditionIdentifier: this.currentConditionIdentifier || {}, + telemetryObjs: [], moveIndex: Number, isDragging: false }; @@ -198,6 +198,16 @@ export default { this.telemetryObjs.splice(index, 1); } }, + removeTelemetry(telemetryDomainObjectIdentifier) { + let index = _.findIndex(this.telemetryObjs, (obj) => { + let objId = this.openmct.objects.makeKeyString(obj.identifier); + let id = this.openmct.objects.makeKeyString(telemetryDomainObjectIdentifier); + return objId === id; + }); + if (index > -1) { + this.telemetryObjs.splice(index, 1); + } + }, addCondition(event, isDefault) { let conditionDomainObject = this.createConditionDomainObject(!!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 diff --git a/src/plugins/condition/components/ConditionSet.vue b/src/plugins/condition/components/ConditionSet.vue index ff72c552a5..19f0959076 100644 --- a/src/plugins/condition/components/ConditionSet.vue +++ b/src/plugins/condition/components/ConditionSet.vue @@ -1,13 +1,33 @@ +/***************************************************************************** + * Open MCT, Copyright (c) 2014-2020, United States Government + * as represented by the Administrator of the National Aeronautics and Space + * Administration. All rights reserved. + * + * Open MCT is licensed under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * Open MCT includes source code licensed under additional open source + * licenses. See the Open Source Licenses file (LICENSES.md) included with + * this source code distribution or the Licensing information page available + * at runtime from the About dialog for additional information. + *****************************************************************************/ + diff --git a/src/plugins/condition/components/CurrentOutput.vue b/src/plugins/condition/components/CurrentOutput.vue index 36f307c21e..a8e0dde8bd 100644 --- a/src/plugins/condition/components/CurrentOutput.vue +++ b/src/plugins/condition/components/CurrentOutput.vue @@ -1,3 +1,25 @@ +/***************************************************************************** + * Open MCT, Copyright (c) 2014-2020, United States Government + * as represented by the Administrator of the National Aeronautics and Space + * Administration. All rights reserved. + * + * Open MCT is licensed under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * Open MCT includes source code licensed under additional open source + * licenses. See the Open Source Licenses file (LICENSES.md) included with + * this source code distribution or the Licensing information page available + * at runtime from the About dialog for additional information. + *****************************************************************************/ +