From 8a2d51256820002a945d444a5ffb4c673f0ba634 Mon Sep 17 00:00:00 2001 From: Chet Joswig Date: Mon, 18 Nov 2024 17:33:22 -0800 Subject: [PATCH] fix for #1561 --- src/components/sequencing/form/ArgTitle.svelte | 14 +++++++++----- src/components/sequencing/form/EnumEditor.svelte | 3 +-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/components/sequencing/form/ArgTitle.svelte b/src/components/sequencing/form/ArgTitle.svelte index 8bd3cabf33..bd6b02ba94 100644 --- a/src/components/sequencing/form/ArgTitle.svelte +++ b/src/components/sequencing/form/ArgTitle.svelte @@ -22,10 +22,12 @@ let title: string = ''; let typeInfo: string = ''; let formattedRange: string = ''; + let isSymbolAllowed: boolean = true; $: typeInfo = compactType(argDef); $: title = getArgTitle(argDef, typeInfo); $: formattedRange = formatRange(argDef); + $: isSymbolAllowed = !isFswCommandArgumentRepeat(argDef); function compactType(argDef: FswCommandArgument): string { if (isFswCommandArgumentUnsigned(argDef)) { @@ -96,12 +98,14 @@ {/if} -
Value Type
+ {#if isSymbolAllowed} +
Value Type
- + + {/if} diff --git a/src/components/sequencing/form/EnumEditor.svelte b/src/components/sequencing/form/EnumEditor.svelte index fdd6a67aa1..49cbce0a79 100644 --- a/src/components/sequencing/form/EnumEditor.svelte +++ b/src/components/sequencing/form/EnumEditor.svelte @@ -3,7 +3,6 @@