16073: Add ellipses to truncated io param docstrings
authorStephen Smith <stephen@curii.com>
Thu, 15 Sep 2022 15:16:21 +0000 (11:16 -0400)
committerStephen Smith <stephen@curii.com>
Thu, 15 Sep 2022 15:16:21 +0000 (11:16 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

src/views/process-panel/process-panel-root.tsx

index 3efcb33505928b8cca3c4f8fa7722c48b461c25b..4508f5ac3e720a89b57335ecaa7e082ca36c92d9 100644 (file)
@@ -172,7 +172,7 @@ const formatInputData = (inputs: CommandInputParameter[], auth: AuthState): Proc
         return {
             id: getIOParamId(input),
             label: input.label || "",
-            doc: doc.substring(0,50),
+            doc: doc.substring(0,50) + (doc.length > 50 ? "..." : ""),
             value: getIOParamDisplayValue(auth, input)
         };
     });
@@ -184,7 +184,7 @@ const formatOutputData = (definitions: CommandOutputParameter[], values: any, pd
         return {
             id: getIOParamId(output),
             label: output.label || "",
-            doc: doc.substring(0,50),
+            doc: doc.substring(0,50) + (doc.length > 50 ? "..." : ""),
             value: getIOParamDisplayValue(auth, Object.assign(output, { value: values[getIOParamId(output)] || [] }), pdh)
         };
     });