mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +00:00
Properties section for single select non-domain object (#2361)
* Display a message when a single non-domain object is selected. * Reviewer's requested change
This commit is contained in:
parent
d93e7bfd1a
commit
3b0605d17b
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="c-properties c-properties--properties">
|
||||
<div class="c-properties__header">Properties</div>
|
||||
<ul class="c-properties__section" v-if="!multiSelect">
|
||||
<ul class="c-properties__section" v-if="!multiSelect && !singleSelectNonObject">
|
||||
<li class="c-properties__row">
|
||||
<div class="c-properties__label">Title</div>
|
||||
<div class="c-properties__value">{{ item.name }}</div>
|
||||
@ -26,6 +26,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
<div class="c-properties__row--span-all" v-if="multiSelect">No properties to display for multiple items</div>
|
||||
<div class="c-properties__row--span-all" v-if="singleSelectNonObject">No properties to display for this item</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -81,6 +82,9 @@ export default {
|
||||
}, this.item)
|
||||
};
|
||||
});
|
||||
},
|
||||
singleSelectNonObject() {
|
||||
return !this.item.identifier && !this.multiSelect;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
Loading…
Reference in New Issue
Block a user