mirror of
https://github.com/nasa/openmct.git
synced 2025-04-13 22:23:13 +00:00
update priority for image selection
This commit is contained in:
parent
7dce30624b
commit
fc99be5995
@ -50,6 +50,7 @@ export default function AnnotationsViewProvider(openmct) {
|
||||
let _destroy = null;
|
||||
|
||||
const selectionContext = selection?.[0]?.[0]?.context;
|
||||
const isImageSelection = selectionContext?.type === 'clicked-on-image-selection';
|
||||
const domainObject = selectionContext?.item;
|
||||
const isNotebookEntry = selectionContext?.type === 'notebook-entry-selection';
|
||||
const isConditionSet = domainObject?.type === 'conditionSet';
|
||||
@ -76,7 +77,7 @@ export default function AnnotationsViewProvider(openmct) {
|
||||
_destroy = destroy;
|
||||
},
|
||||
priority: function () {
|
||||
if (isNotebookEntry) {
|
||||
if (isNotebookEntry || isImageSelection) {
|
||||
return openmct.priority.HIGHEST;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user