diff --git a/src/ui/inspector/Inspector.vue b/src/ui/inspector/Inspector.vue index 1b822263ff..108a9c312d 100644 --- a/src/ui/inspector/Inspector.vue +++ b/src/ui/inspector/Inspector.vue @@ -108,7 +108,7 @@ export default { let object = selection[0][0].context.item; if (object) { let type = this.openmct.types.get(object.type); - this.showStyles = (this.excludeObjectTypes.indexOf(object.type) < 0) && type.definition.creatable; + this.showStyles = this.isLayoutObject(selection[0], object.type) || this.isCreatableObject(object, type); } if (!this.currentTabbedView.key || (!this.showStyles && this.currentTabbedView.key === this.tabbedViews[1].key)) { @@ -116,6 +116,14 @@ export default { } } }, + isLayoutObject(selection, objectType) { + //we allow conditionSets to be styled if they're part of a layout + return selection.length > 1 && + ((objectType === 'conditionSet') || (this.excludeObjectTypes.indexOf(objectType) < 0)); + }, + isCreatableObject(object, type) { + return (this.excludeObjectTypes.indexOf(object.type) < 0) && type.definition.creatable; + }, updateCurrentTab(view) { this.currentTabbedView = view; },