mirror of
https://github.com/nasa/openmct.git
synced 2025-06-01 15:10:50 +00:00
Merge branch 'master' of https://github.com/nasa/openmct into fix-any-telemetry
This commit is contained in:
commit
8515a411bd
@ -201,6 +201,8 @@ export default {
|
|||||||
if (foundMetadata.enumerations !== undefined) {
|
if (foundMetadata.enumerations !== undefined) {
|
||||||
this.operationFormat = 'enum';
|
this.operationFormat = 'enum';
|
||||||
this.enumerations = foundMetadata.enumerations;
|
this.enumerations = foundMetadata.enumerations;
|
||||||
|
} else if (foundMetadata.format === 'string' || foundMetadata.format === 'number') {
|
||||||
|
this.operationFormat = foundMetadata.format;
|
||||||
} else if (foundMetadata.hints.hasOwnProperty('range')) {
|
} else if (foundMetadata.hints.hasOwnProperty('range')) {
|
||||||
this.operationFormat = 'number';
|
this.operationFormat = 'number';
|
||||||
} else if (foundMetadata.hints.hasOwnProperty('domain')) {
|
} else if (foundMetadata.hints.hasOwnProperty('domain')) {
|
||||||
@ -208,7 +210,7 @@ export default {
|
|||||||
} else if (foundMetadata.key === 'name') {
|
} else if (foundMetadata.key === 'name') {
|
||||||
this.operationFormat = 'string';
|
this.operationFormat = 'string';
|
||||||
} else {
|
} else {
|
||||||
this.operationFormat = 'string';
|
this.operationFormat = 'number';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.updateInputVisibilityAndValues();
|
this.updateInputVisibilityAndValues();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user