mirror of
https://github.com/nasa/openmct.git
synced 2025-06-11 03:41:37 +00:00
Changes for tabs visibility and priority
- Alphanumeric formatting tab set to default priority while editing, low priority during browse. - Good styling for Format tab contents in browse mode. - Properties tab set to low priority during editing, default during browse.
This commit is contained in:
parent
59f855ae0f
commit
ffa6ea6276
@ -65,7 +65,9 @@ class AlphanumericFormatView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
priority() {
|
priority() {
|
||||||
return 1;
|
return this.openmct.editor.isEditing()
|
||||||
|
? this.openmct.priority.DEFAULT
|
||||||
|
: this.openmct.priority.LOW;
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy() {
|
destroy() {
|
||||||
|
@ -32,13 +32,17 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="c-inspect-properties__value">
|
<div class="c-inspect-properties__value">
|
||||||
<input
|
<input
|
||||||
|
v-if="isEditing"
|
||||||
id="telemetryPrintfFormat"
|
id="telemetryPrintfFormat"
|
||||||
type="text"
|
type="text"
|
||||||
:disabled="!isEditing"
|
|
||||||
:value="telemetryFormat"
|
:value="telemetryFormat"
|
||||||
:placeholder="nonMixedFormat ? '' : 'Mixed'"
|
:placeholder="nonMixedFormat ? '' : 'Mixed'"
|
||||||
@change="formatTelemetry"
|
@change="formatTelemetry"
|
||||||
/>
|
/>
|
||||||
|
<template v-if="!isEditing && telemetryFormat?.length">
|
||||||
|
{{ telemetryFormat }}
|
||||||
|
</template>
|
||||||
|
<span class="hint" v-else> No custom formating applied </span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -56,6 +56,9 @@ export default function PropertiesViewProvider(openmct) {
|
|||||||
_destroy = destroy;
|
_destroy = destroy;
|
||||||
},
|
},
|
||||||
priority: function () {
|
priority: function () {
|
||||||
|
if (openmct.editor.isEditing()) {
|
||||||
|
return openmct.priority.LOW;
|
||||||
|
}
|
||||||
return openmct.priority.DEFAULT;
|
return openmct.priority.DEFAULT;
|
||||||
},
|
},
|
||||||
destroy: function () {
|
destroy: function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user