mirror of
https://github.com/nasa/openmct.git
synced 2025-01-27 14:49:28 +00:00
trying this again without blowing away the very pretty styling
This commit is contained in:
parent
02cf70135e
commit
9aeb454fb6
@ -26,10 +26,16 @@
|
|||||||
<div class="c-cs__content c-cs__current-output-value">
|
<div class="c-cs__content c-cs__current-output-value">
|
||||||
<span class="c-cs__current-output-value__label">Current Output</span>
|
<span class="c-cs__current-output-value__label">Current Output</span>
|
||||||
<span class="c-cs__current-output-value__value" aria-label="Current Output Value">
|
<span class="c-cs__current-output-value__value" aria-label="Current Output Value">
|
||||||
<template v-if="testDataApplied && currentTestOutput">
|
<template
|
||||||
|
v-if="testDataApplied && currentTestOutput !== undefined && currentTestOutput !== null"
|
||||||
|
>
|
||||||
{{ currentTestOutput }}
|
{{ currentTestOutput }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="currentCompOutput && !testDataApplied">
|
<template
|
||||||
|
v-else-if="
|
||||||
|
!testDataApplied && currentCompOutput !== undefined && currentCompOutput !== null
|
||||||
|
"
|
||||||
|
>
|
||||||
{{ currentCompOutput }}
|
{{ currentCompOutput }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else> --- </template>
|
<template v-else> --- </template>
|
||||||
@ -136,7 +142,7 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { evaluate } from 'mathjs';
|
import { evaluate } from 'mathjs';
|
||||||
import { inject, onBeforeMount, onBeforeUnmount, ref } from 'vue';
|
import { inject, onBeforeMount, onBeforeUnmount, ref, watch } from 'vue';
|
||||||
|
|
||||||
import ObjectPathString from '../../../ui/components/ObjectPathString.vue';
|
import ObjectPathString from '../../../ui/components/ObjectPathString.vue';
|
||||||
import CompsManager from '../CompsManager';
|
import CompsManager from '../CompsManager';
|
||||||
@ -155,7 +161,7 @@ const outputFormat = ref(null);
|
|||||||
|
|
||||||
let outputTelemetryCollection;
|
let outputTelemetryCollection;
|
||||||
|
|
||||||
defineProps({
|
const props = defineProps({
|
||||||
isEditing: {
|
isEditing: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: true
|
required: true
|
||||||
@ -182,6 +188,16 @@ onBeforeUnmount(() => {
|
|||||||
outputTelemetryCollection.destroy();
|
outputTelemetryCollection.destroy();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => props.isEditing,
|
||||||
|
(editMode) => {
|
||||||
|
console.debug(`📢 Edit mode is: ${editMode}`);
|
||||||
|
if (!editMode) {
|
||||||
|
testDataApplied.value = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
function reloadParameters() {
|
function reloadParameters() {
|
||||||
parameters.value = compsManager.getParameters();
|
parameters.value = compsManager.getParameters();
|
||||||
domainObject.configuration.comps.parameters = parameters.value;
|
domainObject.configuration.comps.parameters = parameters.value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user