From abc72625843d0ea46b84adb1e30dc2b7ff13bfd9 Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Thu, 19 May 2022 10:09:45 -0700
Subject: [PATCH] IO-1886 Handle large numbers of of menu items for notes and
file handler.
---
...bs-detail-change-filehandler.component.jsx | 21 ++++++++++--------
.../jobs-detail-header.component.jsx | 22 ++++++++++---------
.../notes-preset-button.component.jsx | 12 ++++++++--
.../parts-queue.page.component.jsx | 2 ++
4 files changed, 36 insertions(+), 21 deletions(-)
diff --git a/client/src/components/jobs-detail-change-filehandler/jobs-detail-change-filehandler.component.jsx b/client/src/components/jobs-detail-change-filehandler/jobs-detail-change-filehandler.component.jsx
index 998f74125..ee684994b 100644
--- a/client/src/components/jobs-detail-change-filehandler/jobs-detail-change-filehandler.component.jsx
+++ b/client/src/components/jobs-detail-change-filehandler/jobs-detail-change-filehandler.component.jsx
@@ -16,15 +16,18 @@ export function JobsDetailChangeFilehandler({ disabled, form, bodyshop }) {
};
const menu = (
-
-
-
+
);
return (
diff --git a/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx b/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx
index 8494086a8..763246908 100644
--- a/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx
+++ b/client/src/components/jobs-detail-header/jobs-detail-header.component.jsx
@@ -216,20 +216,22 @@ export function JobsDetailHeader({ job, bodyshop, disabled }) {
- {job.vehicle.notes && (
+ {job.vehicle && job.vehicle.notes && (
{job.vehicle.notes}
)}
- {job.vehicle.v_paint_codes && (
-
-
- {Object.keys(job.vehicle.v_paint_codes).map((key, idx) => (
- {job.vehicle.v_paint_codes[key]}
- ))}
-
-
- )}
+ {
+ // job.vehicle && job.vehicle.v_paint_codes && (
+ //
+ //
+ // {Object.keys(job.vehicle.v_paint_codes).map((key, idx) => (
+ // {job.vehicle.v_paint_codes[key]}
+ // ))}
+ //
+ //
+ // )
+ }
diff --git a/client/src/components/notes-preset-button/notes-preset-button.component.jsx b/client/src/components/notes-preset-button/notes-preset-button.component.jsx
index 97eaf36b6..6cf5de285 100644
--- a/client/src/components/notes-preset-button/notes-preset-button.component.jsx
+++ b/client/src/components/notes-preset-button/notes-preset-button.component.jsx
@@ -22,9 +22,17 @@ export function NotesPresetButton({ bodyshop, form }) {
};
const menu = (
-