fixing implementation for telemetry view items in display layout

This commit is contained in:
Jamie Vigliotta
2020-07-15 14:45:03 -07:00
parent 7f7518bb9d
commit 551364ad8c
3 changed files with 25 additions and 15 deletions

View File

@ -59,7 +59,7 @@
<div class="c-telemetry-view__value-text">
{{ telemetryValue }}
<span
v-if="unit && showUnits"
v-if="unit && item.showUnits"
class="c-telemetry-view__value-text__unit"
>
{{ unit }}
@ -129,8 +129,7 @@ export default {
datum: undefined,
formats: undefined,
domainObject: undefined,
currentObjectPath: undefined,
showUnits: true
currentObjectPath: undefined
}
},
computed: {
@ -279,9 +278,6 @@ export default {
},
showContextMenu(event) {
this.openmct.contextMenu._showContextMenuForObjectPath(this.currentObjectPath, event.x, event.y, CONTEXT_MENU_ACTIONS);
},
toggleUnits(show) {
this.showUnits = show;
}
}
}