mirror of
https://github.com/nasa/openmct.git
synced 2025-05-31 22:50:49 +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;
|
let _destroy = null;
|
||||||
|
|
||||||
const selectionContext = selection?.[0]?.[0]?.context;
|
const selectionContext = selection?.[0]?.[0]?.context;
|
||||||
|
const isImageSelection = selectionContext?.type === 'clicked-on-image-selection';
|
||||||
const domainObject = selectionContext?.item;
|
const domainObject = selectionContext?.item;
|
||||||
const isNotebookEntry = selectionContext?.type === 'notebook-entry-selection';
|
const isNotebookEntry = selectionContext?.type === 'notebook-entry-selection';
|
||||||
const isConditionSet = domainObject?.type === 'conditionSet';
|
const isConditionSet = domainObject?.type === 'conditionSet';
|
||||||
@ -76,7 +77,7 @@ export default function AnnotationsViewProvider(openmct) {
|
|||||||
_destroy = destroy;
|
_destroy = destroy;
|
||||||
},
|
},
|
||||||
priority: function () {
|
priority: function () {
|
||||||
if (isNotebookEntry) {
|
if (isNotebookEntry || isImageSelection) {
|
||||||
return openmct.priority.HIGHEST;
|
return openmct.priority.HIGHEST;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user