feature/IO-3499-React-19: Bug Fixes / Checkpoint

This commit is contained in:
Dave
2026-01-13 22:28:43 -05:00
parent 7bdfbfabe9
commit 53d556a621
171 changed files with 1128 additions and 954 deletions

View File

@@ -41,23 +41,20 @@ export function JobLinesPartPriceChange({ job, line, refetch, technician, isPart
id: job.id
});
if (result.errors) {
notification.open({
type: "error",
message: t("joblines.errors.saving", {
notification.error({
title: t("joblines.errors.saving", {
error: JSON.stringify(result.errors)
})
});
if (refetch) refetch();
} else {
notification.open({
type: "success",
message: t("joblines.successes.saved")
notification.success({
title: t("joblines.successes.saved")
});
}
} catch (error) {
notification.open({
type: "error",
message: t("joblines.errors.saving", { error: JSON.stringify(error) })
notification.error({
title: t("joblines.errors.saving", { error: JSON.stringify(error) })
});
} finally {
setLoading(false);

View File

@@ -174,7 +174,7 @@ export function JobLinesComponent({
prev.map((l) => (l && selectedLineIds.includes(l.id) ? { ...l, location: locationToSave } : l))
);
notification["success"]({ message: t("joblines.successes.saved") });
notification.success({ title: t("joblines.successes.saved") });
logImEXEvent("joblines_bulk_location_saved", {
count: selectedLineIds.length,
@@ -184,13 +184,13 @@ export function JobLinesComponent({
closeBulkLocationModal();
if (refetch) refetch();
} else {
notification["error"]({
message: t("joblines.errors.saving", { error: JSON.stringify(result.errors) })
notification.error({
title: t("joblines.errors.saving", { error: JSON.stringify(result.errors) })
});
}
} catch (error) {
notification["error"]({
message: t("joblines.errors.saving", { error: error?.message || String(error) })
notification.error({
title: t("joblines.errors.saving", { error: error?.message || String(error) })
});
} finally {
setBulkLocationSaving(false);