mirror of
https://github.com/nasa/openmct.git
synced 2025-01-02 19:36:41 +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>
|
||||||
<div ref="objectViewWrapper"
|
<div ref="objectViewWrapper"
|
||||||
class="c-object-view"
|
class="c-object-view"
|
||||||
|
:class="objectTypeClass"
|
||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -75,6 +76,9 @@ export default {
|
|||||||
const viewKey = this.getViewKey();
|
const viewKey = this.getViewKey();
|
||||||
|
|
||||||
return this.domainObject && SupportedViewTypes.includes(viewKey);
|
return this.domainObject && SupportedViewTypes.includes(viewKey);
|
||||||
|
},
|
||||||
|
objectTypeClass() {
|
||||||
|
return this.domainObject && ('is-object-type-' + this.domainObject.type);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
|
@ -29,4 +29,7 @@
|
|||||||
|
|
||||||
@include smallerControlButtons;
|
@include smallerControlButtons;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Yet more brittle special case selecting...
|
||||||
|
.is-object-type-plan { display: contents; }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user