mirror of
https://github.com/nasa/openmct.git
synced 2025-06-04 08:30:48 +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>
|
<template>
|
||||||
<div class="c-properties c-properties--properties">
|
<div class="c-properties c-properties--properties">
|
||||||
<div class="c-properties__header">Properties</div>
|
<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">
|
<li class="c-properties__row">
|
||||||
<div class="c-properties__label">Title</div>
|
<div class="c-properties__label">Title</div>
|
||||||
<div class="c-properties__value">{{ item.name }}</div>
|
<div class="c-properties__value">{{ item.name }}</div>
|
||||||
@ -26,6 +26,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</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="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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -81,6 +82,9 @@ export default {
|
|||||||
}, this.item)
|
}, this.item)
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
singleSelectNonObject() {
|
||||||
|
return !this.item.identifier && !this.multiSelect;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user