From 1f4e13803d26d777d5aa8ce94bd0e42120344c77 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Fri, 31 Jul 2020 14:13:58 -0700 Subject: [PATCH] Fixed mark lines to be additive and use natual language labels instead of part types. BOD-206 --- .../job-detail-lines/job-lines.component.jsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/client/src/components/job-detail-lines/job-lines.component.jsx b/client/src/components/job-detail-lines/job-lines.component.jsx index db22cc7ee..9ae0a8012 100644 --- a/client/src/components/job-detail-lines/job-lines.component.jsx +++ b/client/src/components/job-detail-lines/job-lines.component.jsx @@ -269,14 +269,18 @@ export function JobLinesComponent({ }; const handleMark = (e) => { - setSelectedLines(jobLines.filter((item) => item.part_type === e.key)); + setSelectedLines([ + ...selectedLines, + ...jobLines.filter((item) => item.part_type === e.key), + ]); }; const markMenu = ( - PAA - PAN - PAL + {t("joblines.fields.part_types.PAA")} + {t("joblines.fields.part_types.PAN")} + {t("joblines.fields.part_types.PAL")} + {t("joblines.fields.part_types.PAS")} );