mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 14:07:50 +00:00
Suppress annotations tab if no annotations defined (#6498)
* fix bad copy paste * suppress annotations inspector tab if no tags
This commit is contained in:
parent
4aa572d489
commit
f39f8df4e2
@ -23,11 +23,17 @@
|
||||
import Annotations from './AnnotationsInspectorView.vue';
|
||||
import Vue from 'vue';
|
||||
|
||||
export default function ElementsViewProvider(openmct) {
|
||||
export default function AnnotationsViewProvider(openmct) {
|
||||
return {
|
||||
key: 'annotationsView',
|
||||
name: 'Annotations',
|
||||
canView: function (selection) {
|
||||
const availableTags = openmct.annotation.getAvailableTags();
|
||||
|
||||
if (availableTags.length < 1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return selection.length;
|
||||
},
|
||||
view: function (selection) {
|
||||
|
Loading…
Reference in New Issue
Block a user