mirror of
https://github.com/nasa/openmct.git
synced 2025-01-02 19:36:41 +00:00
Merge branch 'telemetry-comps' of github.com:nasa/openmct into telemetry-comps
# Conflicts: # src/plugins/comps/components/CompsView.vue
This commit is contained in:
commit
f8ceaa5a83
@ -53,9 +53,19 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="c-comps__refs">
|
<div class="c-comps__refs">
|
||||||
<div v-for="parameter in parameters" :key="parameter.name" class="c-comps__ref">
|
<div
|
||||||
|
v-for="parameter in parameters"
|
||||||
|
:key="parameter.keyString"
|
||||||
|
class="c-comps__ref"
|
||||||
|
>
|
||||||
<span class="c-test-datum__string">Reference</span>
|
<span class="c-test-datum__string">Reference</span>
|
||||||
<input v-if="isEditing" v-model="parameter.name" type="text" class="c-input--md" />
|
<input
|
||||||
|
v-if="isEditing"
|
||||||
|
v-model="parameter.name"
|
||||||
|
type="text"
|
||||||
|
class="c-input--md"
|
||||||
|
@change="updateParameters"
|
||||||
|
/>
|
||||||
<div v-else class="--em">{{ parameter.name }}</div>
|
<div v-else class="--em">{{ parameter.name }}</div>
|
||||||
<span class="c-test-datum__string">=</span>
|
<span class="c-test-datum__string">=</span>
|
||||||
<span class="c-comps__path-and-field">
|
<span class="c-comps__path-and-field">
|
||||||
@ -183,6 +193,7 @@ function reloadParameters() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateParameters() {
|
function updateParameters() {
|
||||||
|
console.debug('🚀 CompsView: updateParameters', parameters.value);
|
||||||
openmct.objects.mutate(domainObject, `configuration.comps.parameters`, parameters.value);
|
openmct.objects.mutate(domainObject, `configuration.comps.parameters`, parameters.value);
|
||||||
compsManager.setDomainObject(domainObject);
|
compsManager.setDomainObject(domainObject);
|
||||||
applyTestData();
|
applyTestData();
|
||||||
@ -237,7 +248,7 @@ function telemetryProcessor(data) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// new data will come in as array, so just take the last element
|
// new data will come in as array, so just take the last element
|
||||||
const currentOutput = data[data.length - 1]?.output;
|
const currentOutput = data[data.length - 1]?.compsOutput;
|
||||||
const formattedOutput = getValueFormatter().format(currentOutput);
|
const formattedOutput = getValueFormatter().format(currentOutput);
|
||||||
currentCompOutput.value = formattedOutput;
|
currentCompOutput.value = formattedOutput;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user