From 9b9ac505e99eaa795022c3fed7614d62a3960d05 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Thu, 28 Mar 2024 14:41:54 -0700 Subject: [PATCH 1/5] Refactor task modal opening. --- .../time-ticket-task-modal.container.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/components/time-ticket-task-modal/time-ticket-task-modal.container.jsx b/client/src/components/time-ticket-task-modal/time-ticket-task-modal.container.jsx index 53f57c68c..724482f45 100644 --- a/client/src/components/time-ticket-task-modal/time-ticket-task-modal.container.jsx +++ b/client/src/components/time-ticket-task-modal/time-ticket-task-modal.container.jsx @@ -33,7 +33,7 @@ export function TimeTickeTaskModalContainer({ toggleModalVisible }) { const [form] = Form.useForm(); - const { context, visible, actions } = timeTicketTasksModal; + const { context, open, actions } = timeTicketTasksModal; const [completedTasks, setCompletedTasks] = useState([]); const [unassignedHours, setUnassignedHours] = useState(0); const { t } = useTranslation(); @@ -59,13 +59,13 @@ export function TimeTickeTaskModalContainer({ [client] ); useEffect(() => { - if (visible) { + if (open) { form.setFieldsValue({ ...context, task: null, timetickets: null }); if (context.jobid) { getCompletedTasks(context.jobid); } } - }, [context.jobid, visible, getCompletedTasks, form, context]); + }, [context.jobid, open, getCompletedTasks, form, context]); async function handleValueChange(changedValues, allValues) { if (changedValues.jobid) { @@ -118,7 +118,7 @@ export function TimeTickeTaskModalContainer({ return ( { toggleModalVisible(); form.resetFields(); From 07a18bcd8c13559340590bdf7b48002b0ff4d220 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 1 Apr 2024 10:44:57 -0700 Subject: [PATCH 2/5] IO-2661 Rename CSR labels to Writer for Rome & PM --- bodyshop_translations.babel | 23 ++++++++++++++++++- client/src/components/eula/eula.component.jsx | 8 +++---- .../feature-wrapper.component.jsx | 2 +- .../job-employee-assignments.component.jsx | 11 ++++++++- .../jobs-convert-button.component.jsx | 9 +++++++- .../production-list-columns.data.jsx | 23 +++++++++++-------- client/src/translations/en_us/common.json | 1 + client/src/translations/es/common.json | 1 + client/src/translations/fr/common.json | 1 + 9 files changed, 62 insertions(+), 17 deletions(-) diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index cbc7e04be..aeabb8f20 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -1,4 +1,4 @@ - +