Skip to content

Commit

Permalink
Changes for tabs visibility and priority
Browse files Browse the repository at this point in the history
- Adjusted edit and browse mode priorities for Properties and Elements.
- Priority set for Gantt view.
  • Loading branch information
charlesh88 committed Jan 16, 2025
1 parent f199ce5 commit b09b9e0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b09b9e0

Please sign in to comment.