mirror of
https://github.com/nasa/openmct.git
synced 2025-02-23 10:30:29 +00:00
parent
ee4a81bdfd
commit
a81af1ce34
@ -201,6 +201,8 @@ export default {
|
||||
if (foundMetadata.enumerations !== undefined) {
|
||||
this.operationFormat = 'enum';
|
||||
this.enumerations = foundMetadata.enumerations;
|
||||
} else if (foundMetadata.format === 'string' || foundMetadata.format === 'number') {
|
||||
this.operationFormat = foundMetadata.format;
|
||||
} else if (foundMetadata.hints.hasOwnProperty('range')) {
|
||||
this.operationFormat = 'number';
|
||||
} else if (foundMetadata.hints.hasOwnProperty('domain')) {
|
||||
@ -208,7 +210,7 @@ export default {
|
||||
} else if (foundMetadata.key === 'name') {
|
||||
this.operationFormat = 'string';
|
||||
} else {
|
||||
this.operationFormat = 'string';
|
||||
this.operationFormat = 'number';
|
||||
}
|
||||
}
|
||||
this.updateInputVisibilityAndValues();
|
||||
|
Loading…
x
Reference in New Issue
Block a user