mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 22:17:49 +00:00
allow blank test values for arrays
This commit is contained in:
parent
bf9d5ef4a7
commit
d6f50567bc
@ -135,7 +135,7 @@
|
||||
:aria-label="`Reference Test Value for ${parameter.name}`"
|
||||
type="text"
|
||||
class="c-input--md"
|
||||
@change="updateParameters"
|
||||
@change="updateTestValue(parameter)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@ -275,6 +275,13 @@ function updateAccumulateValues(parameter) {
|
||||
updateParameters();
|
||||
}
|
||||
|
||||
function updateTestValue(parameter) {
|
||||
if (parameter.accumulateValues && !Array.isArray(parameter.testValue)) {
|
||||
parameter.testValue = [parameter.testValue];
|
||||
}
|
||||
updateParameters();
|
||||
}
|
||||
|
||||
function toggleTestData() {
|
||||
testDataApplied.value = !testDataApplied.value;
|
||||
if (testDataApplied.value) {
|
||||
|
Loading…
Reference in New Issue
Block a user