Changes for tabs visibility and priority

- Adjusted edit and browse mode priorities for Properties and Elements.
- Priority set for Gantt view.
This commit is contained in:
Charles Hacskaylo 2025-01-15 17:26:27 -08:00
parent f199ce58ea
commit b09b9e0b5b
4 changed files with 3 additions and 4 deletions

View File

@ -42,7 +42,6 @@
<template v-if="!isEditing && telemetryFormat?.length">
{{ telemetryFormat }}
</template>
<span class="hint" v-else> No custom formating applied </span>
</div>
</li>
</ul>

View File

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

View File

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

View File

@ -62,7 +62,7 @@ export default function GanttChartInspectorViewProvider(openmct) {
_destroy = destroy;
},
priority: function () {
return openmct.priority.HIGH + 1;
return openmct.editor.isEditing() ? openmct.priority.HIGH + 1 : openmct.priority.DEFAULT;
},
destroy: function () {
if (_destroy) {