mirror of
https://github.com/nasa/openmct.git
synced 2025-01-21 12:05:12 +00:00
resolved conflicts
This commit is contained in:
commit
2b5d6beb84
@ -58,7 +58,7 @@ export default class ConditionSetViewProvider {
|
|||||||
isEditing
|
isEditing
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
template: '<condition-set ref="conditionSet" :isEditing="isEditing"></condition-set>'
|
template: '<condition-set :isEditing="isEditing"></condition-set>'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onEditModeChange: (isEditing) => {
|
onEditModeChange: (isEditing) => {
|
||||||
|
@ -95,12 +95,12 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
expanded: true,
|
expanded: true,
|
||||||
telemetryObjs: [],
|
|
||||||
parentKeyString: this.openmct.objects.makeKeyString(this.domainObject.identifier),
|
parentKeyString: this.openmct.objects.makeKeyString(this.domainObject.identifier),
|
||||||
conditionCollection: [],
|
conditionCollection: [],
|
||||||
conditionResults: {},
|
conditionResults: {},
|
||||||
conditions: [],
|
conditions: [],
|
||||||
currentConditionIdentifier: this.currentConditionIdentifier || {},
|
currentConditionIdentifier: this.currentConditionIdentifier || {},
|
||||||
|
telemetryObjs: [],
|
||||||
moveIndex: Number,
|
moveIndex: Number,
|
||||||
isDragging: false
|
isDragging: false
|
||||||
};
|
};
|
||||||
@ -198,6 +198,16 @@ export default {
|
|||||||
this.telemetryObjs.splice(index, 1);
|
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) {
|
addCondition(event, isDefault) {
|
||||||
let conditionDomainObject = this.createConditionDomainObject(!!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
|
//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
|
||||||
|
@ -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.
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="c-object-view u-contents">
|
<div class="c-cs-edit w-condition-set">
|
||||||
<div class="c-cs-edit w-condition-set">
|
<div class="c-sw-edit__ui holder">
|
||||||
<div class="c-sw-edit__ui holder">
|
<CurrentOutput :condition="currentCondition" />
|
||||||
<CurrentOutput :condition="currentCondition" />
|
<TestData :is-editing="isEditing" />
|
||||||
<TestData :is-editing="isEditing" />
|
<ConditionCollection :is-editing="isEditing"
|
||||||
<ConditionCollection :is-editing="isEditing"
|
@currentConditionUpdated="updateCurrentCondition"
|
||||||
@currentConditionUpdated="updateCurrentCondition"
|
/>
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -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.
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<section id="current-output">
|
<section id="current-output">
|
||||||
<div v-if="condition"
|
<div v-if="condition"
|
||||||
|
@ -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.
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<section v-show="isEditing"
|
<section v-show="isEditing"
|
||||||
id="test-data"
|
id="test-data"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
.widget-condition {
|
.widget-condition {
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
margin: 0 0 5px;
|
margin: 0 0 0.33em;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
|
||||||
&--current {
|
&--current {
|
||||||
@ -162,7 +162,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.c-c__menu-hamburger {
|
.c-c__menu-hamburger {
|
||||||
|
&:active {
|
||||||
|
cursor: grabbing;
|
||||||
|
cursor: -moz-grabbing;
|
||||||
|
cursor: -webkit-grabbing;
|
||||||
|
}
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
content: $glyph-icon-menu-hamburger;
|
content: $glyph-icon-menu-hamburger;
|
||||||
}
|
}
|
||||||
@ -182,12 +189,11 @@
|
|||||||
|
|
||||||
.c-c__drag-ghost {
|
.c-c__drag-ghost {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 5px;
|
min-height: 0.33em;
|
||||||
&.dragging {
|
&.dragging {
|
||||||
min-height: 20px;
|
min-height: 2em;
|
||||||
border: solid 1px blue;
|
border: solid 1px blue;
|
||||||
background-color: lightblue;
|
background-color: lightblue;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
import Vue from 'vue';
|
|
||||||
export const EventBus = new Vue();
|
|
Loading…
Reference in New Issue
Block a user