From 770d19bc58cc0ef97ae13244abd56f00de868670 Mon Sep 17 00:00:00 2001 From: Ryan Melton Date: Mon, 16 Dec 2024 10:51:20 -0700 Subject: [PATCH] Remove star from chosen script --- .../openc3-vue-common/src/components/ScriptChooser.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openc3-cosmos-init/plugins/packages/openc3-vue-common/src/components/ScriptChooser.vue b/openc3-cosmos-init/plugins/packages/openc3-vue-common/src/components/ScriptChooser.vue index e50fd6f8d..f3e6d9fa6 100644 --- a/openc3-cosmos-init/plugins/packages/openc3-vue-common/src/components/ScriptChooser.vue +++ b/openc3-cosmos-init/plugins/packages/openc3-vue-common/src/components/ScriptChooser.vue @@ -81,7 +81,12 @@ export default { watch: { selected(newVal, oldVal) { if (newVal !== oldVal) { - this.$emit('file', newVal) + if (newVal.slice(-1) === '*') { + // Remove the * before returning + this.$emit('file', newVal.substring(0, newVal.length - 1)) + } else { + this.$emit('file', newVal) + } } }, search(val) {