mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 14:07:50 +00:00
- Add objectTypeClass property to allow new CSS selector to target Plan object types in Timestrip views.; Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
This commit is contained in:
parent
7209104d05
commit
839e210ac1
@ -10,6 +10,7 @@
|
||||
</div>
|
||||
<div ref="objectViewWrapper"
|
||||
class="c-object-view"
|
||||
:class="objectTypeClass"
|
||||
></div>
|
||||
</div>
|
||||
</template>
|
||||
@ -75,6 +76,9 @@ export default {
|
||||
const viewKey = this.getViewKey();
|
||||
|
||||
return this.domainObject && SupportedViewTypes.includes(viewKey);
|
||||
},
|
||||
objectTypeClass() {
|
||||
return this.domainObject && ('is-object-type-' + this.domainObject.type);
|
||||
}
|
||||
},
|
||||
destroyed() {
|
||||
|
@ -29,4 +29,7 @@
|
||||
|
||||
@include smallerControlButtons;
|
||||
}
|
||||
|
||||
// Yet more brittle special case selecting...
|
||||
.is-object-type-plan { display: contents; }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user