Optionally provide list of object types to show as views rather than telemetry in Display Layouts (#2339)

* Optionally provide list of object types to show as views rather than alpha numerics to display layouts

* Only make table view available for objects that have telemetry to show
This commit is contained in:
Andrew Henry
2019-03-28 22:21:27 -07:00
committed by Deep Tailor
parent 57efef3160
commit bc5e300ba9
5 changed files with 25 additions and 10 deletions

View File

@ -152,7 +152,7 @@
return this.internalDomainObject.configuration.items;
}
},
inject: ['openmct'],
inject: ['openmct', 'options'],
props: ['domainObject'],
components: ITEM_TYPE_VIEW_MAP,
methods: {
@ -283,9 +283,8 @@
}
},
isTelemetry(domainObject) {
if (this.openmct.telemetry.isTelemetryObject(domainObject)
&& domainObject.type !== 'summary-widget'
&& domainObject.type !== 'example.imagery') {
if (this.openmct.telemetry.isTelemetryObject(domainObject) &&
!this.options.showAsView.includes(domainObject.type)) {
return true;
} else {
return false;