Changes for tabs visibility and priority

- Edit and browse mode priorities for Properties and Elements.
This commit is contained in:
Charles Hacskaylo 2025-01-15 17:09:18 -08:00
parent 9f1cac57ed
commit f199ce58ea
2 changed files with 2 additions and 5 deletions

View File

@ -65,7 +65,7 @@ export default function ElementsViewProvider(openmct) {
return hasComposition;
},
priority: function () {
return openmct.priority.DEFAULT;
return openmct.editor.isEditing() ? openmct.priority.DEFAULT : openmct.priority.LOW;
},
destroy: function () {
if (_destroy) {

View File

@ -56,10 +56,7 @@ export default function PropertiesViewProvider(openmct) {
_destroy = destroy;
},
priority: function () {
if (openmct.editor.isEditing()) {
return openmct.priority.LOW;
}
return openmct.priority.DEFAULT;
return openmct.editor.isEditing() ? openmct.priority.LOW : openmct.priority.DEFAULT;
},
destroy: function () {
if (_destroy) {