mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 09:52:04 +00:00
[Display Layout] Exclude layout objects from 'missing' object check (#3369)
* safe check for domainObject status * clarifying comment
This commit is contained in:
parent
24c5dc03de
commit
4a576321e3
@ -2,7 +2,7 @@
|
||||
<div class="c-inspector__header">
|
||||
<div v-if="!multiSelect"
|
||||
class="c-inspector__selected c-object-label"
|
||||
:class="{'is-missing': domainObject.status === 'missing' }"
|
||||
:class="{'is-missing': isMissing }"
|
||||
>
|
||||
<div class="c-object-label__type-icon"
|
||||
:class="typeCssClass"
|
||||
@ -57,6 +57,10 @@ export default {
|
||||
},
|
||||
singleSelectNonObject() {
|
||||
return !this.item.identifier && !this.multiSelect;
|
||||
},
|
||||
isMissing() {
|
||||
// safe check this.domainObject since for layout objects this.domainOjbect is undefined
|
||||
return this.domainObject && this.domainObject.status === 'missing';
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user