Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,12 @@
data-test="playback-time"
:disabled="playbackPlaying"
/>
<v-tooltip :text="`Skip Backward ${playbackSkip} secs`" :open-delay="2000" location="top">
<template v-slot:activator="{ props }">
<v-tooltip
:text="`Skip Backward ${playbackSkip} secs`"
:open-delay="2000"
location="top"
>
<template #activator="{ props }">
<v-btn
v-bind="props"
icon="mdi-skip-backward"
Expand All @@ -110,8 +114,12 @@
></v-btn>
</template>
</v-tooltip>
<v-tooltip :text="`Step Backward ${playbackStep} secs`" :open-delay="2000" location="top">
<template v-slot:activator="{ props }">
<v-tooltip
:text="`Step Backward ${playbackStep} secs`"
:open-delay="2000"
location="top"
>
<template #activator="{ props }">
<v-btn
v-bind="props"
icon="mdi-step-backward"
Expand All @@ -131,8 +139,12 @@
style="margin-top: -5px"
@click="playbackToggle"
></v-btn>
<v-tooltip :text="`Step Forward ${playbackStep} secs`" :open-delay="2000" location="top">
<template v-slot:activator="{ props }">
<v-tooltip
:text="`Step Forward ${playbackStep} secs`"
:open-delay="2000"
location="top"
>
<template #activator="{ props }">
<v-btn
v-bind="props"
icon="mdi-step-forward"
Expand All @@ -144,8 +156,12 @@
></v-btn>
</template>
</v-tooltip>
<v-tooltip :text="`Skip Forward ${playbackSkip} secs`" :open-delay="2000" location="top">
<template v-slot:activator="{ props }">
<v-tooltip
:text="`Skip Forward ${playbackSkip} secs`"
:open-delay="2000"
location="top"
>
<template #activator="{ props }">
<v-btn
v-bind="props"
icon="mdi-skip-forward"
Expand Down Expand Up @@ -355,6 +371,12 @@
},
},
watch: {
selectedTarget: function (newTarget, oldTarget) {
// When target changes, update screen to first screen of new target
if (newTarget && newTarget !== oldTarget && this.screens[newTarget]) {
this.selectedScreen = this.screens[newTarget][0]
}
},
definitions: {
handler: function () {
this.saveDefaultConfig(this.currentConfig)
Expand Down Expand Up @@ -569,7 +591,15 @@
return Api.get('/openc3-api/screen/' + target + '/' + screen, {
headers: {
Accept: 'text/plain',
// Plugins can be removed so 404 is possible which we want to ignore
'Ignore-Errors': '404',
},
}).catch((error) => {
// eslint-disable-next-line no-console
console.error(
`Error loading screen ${screen} for target ${target}:`,
error,
)
})
},
pushScreen(definition) {
Expand Down Expand Up @@ -617,7 +647,7 @@
this.screens[def.target].splice(index, 1)
if (this.screens[def.target].length === 0) {
// Must call this.$delete to notify Vue of property deletion
this.$delete(this.screens, def.target)

Check warning on line 650 in openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue

View workflow job for this annotation

GitHub Actions / tlmviewer

The `$delete`, `$set` is deprecated
}
}
},
Expand Down
Loading