From 2fc87caa99033bcf163d10eea55642cf994e1151 Mon Sep 17 00:00:00 2001 From: Ryan Pratt Date: Fri, 3 Jan 2025 11:01:57 -0700 Subject: [PATCH] PacketViewer back button goes back to last target/packet --- .../src/tools/PacketViewer/PacketViewer.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue b/openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue index 1b7f62e4a..0fe3512cf 100644 --- a/openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue +++ b/openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-packetviewer/src/tools/PacketViewer/PacketViewer.vue @@ -277,6 +277,12 @@ export default { }, deep: true, // Because pinnedItems is an array }, + '$route.params': function ({ target, packet }) { + this.packetChanged({ + targetName: target.toUpperCase(), + packetName: packet.toUpperCase(), + }) + }, }, computed: { menus: function () {