feature/IO-3499-React-19: Bug Fixes / Checkpoint
This commit is contained in:
@@ -235,8 +235,8 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader, inse
|
||||
const sev = severity || (isRrOpenRoLimit ? "warning" : "error");
|
||||
|
||||
if (!isRrOpenRoLimit) {
|
||||
const notifyKind = sev === "warning" && typeof notification.warning === "function" ? "warning" : "error";
|
||||
notification[notifyKind]({ message: vendorTitle, description: msg, duration: 10 });
|
||||
const type = sev === "warning" && typeof notification.warning === "function" ? "warning" : "error";
|
||||
notification.open({ type, tile: vendorTitle, description: msg, duration: 10 });
|
||||
} else {
|
||||
setRrOpenRoLimit(true);
|
||||
}
|
||||
@@ -307,7 +307,7 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader, inse
|
||||
const onConnectError = (err) => {
|
||||
// Legacy and WSS both emit this
|
||||
console.log(`connect_error due to ${err}`, err);
|
||||
notification.error({ message: err.message });
|
||||
notification.error({ title: err.message });
|
||||
};
|
||||
|
||||
activeSocket.on("disconnect", onDisconnect);
|
||||
@@ -333,7 +333,7 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader, inse
|
||||
// Success / Failed
|
||||
const onExportSuccess = (payload) => {
|
||||
const jobIdResolved = payload?.jobId ?? payload;
|
||||
notification.success({ message: t("jobs.successes.exported") });
|
||||
notification.success({ title: t("jobs.successes.exported") });
|
||||
|
||||
// Clear RR Validation flag if any
|
||||
setrrValidationPending(false);
|
||||
@@ -414,7 +414,7 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader, inse
|
||||
if (!isWssMode(mode)) return; // RR is WSS-only
|
||||
activeSocket.emit("rr-finalize-repair-order", { jobId }, (ack) => {
|
||||
if (ack?.ok) return;
|
||||
if (ack?.error) notification.error({ message: ack.error });
|
||||
if (ack?.error) notification.error({ title: ack.error });
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user