mirror of
https://github.com/nasa/openmct.git
synced 2025-06-01 15:10:50 +00:00
Changes for tabs visibility and priority
- Edit and browse mode priorities for Properties and Elements.
This commit is contained in:
parent
9f1cac57ed
commit
f199ce58ea
@ -65,7 +65,7 @@ export default function ElementsViewProvider(openmct) {
|
|||||||
return hasComposition;
|
return hasComposition;
|
||||||
},
|
},
|
||||||
priority: function () {
|
priority: function () {
|
||||||
return openmct.priority.DEFAULT;
|
return openmct.editor.isEditing() ? openmct.priority.DEFAULT : openmct.priority.LOW;
|
||||||
},
|
},
|
||||||
destroy: function () {
|
destroy: function () {
|
||||||
if (_destroy) {
|
if (_destroy) {
|
||||||
|
@ -56,10 +56,7 @@ export default function PropertiesViewProvider(openmct) {
|
|||||||
_destroy = destroy;
|
_destroy = destroy;
|
||||||
},
|
},
|
||||||
priority: function () {
|
priority: function () {
|
||||||
if (openmct.editor.isEditing()) {
|
return openmct.editor.isEditing() ? openmct.priority.LOW : openmct.priority.DEFAULT;
|
||||||
return openmct.priority.LOW;
|
|
||||||
}
|
|
||||||
return openmct.priority.DEFAULT;
|
|
||||||
},
|
},
|
||||||
destroy: function () {
|
destroy: function () {
|
||||||
if (_destroy) {
|
if (_destroy) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user