Uncommented active code left from prior commit
This commit is contained in:
@@ -80,32 +80,27 @@ export function JobsCloseExportButton({ bodyshop, jobId, disabled }) {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
const jobUpdateResponse = await updateJob({
|
||||||
|
variables: {
|
||||||
|
jobId: jobId,
|
||||||
|
job: {
|
||||||
|
status: bodyshop.md_ro_statuses.default_exported || "Exported*",
|
||||||
|
date_exported: new Date(),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
if (!!!jobUpdateResponse.errors) {
|
||||||
// const jobUpdateResponse = await updateJob({
|
notification["success"]({
|
||||||
// variables: {
|
message: t("jobs.successes.exported"),
|
||||||
// jobId: jobId,
|
});
|
||||||
// job: {
|
} else {
|
||||||
// status: bodyshop.md_ro_statuses.default_exported || "Exported*",
|
notification["error"]({
|
||||||
// date_exported: new Date(),
|
message: t("jobs.errors.exporting", {
|
||||||
// },
|
error: JSON.stringify(jobUpdateResponse.error),
|
||||||
// },
|
}),
|
||||||
// });
|
});
|
||||||
|
}
|
||||||
// if (!!!jobUpdateResponse.errors) {
|
|
||||||
// notification["success"]({
|
|
||||||
// message: t("jobs.successes.exported"),
|
|
||||||
// });
|
|
||||||
// } else {
|
|
||||||
// notification["error"]({
|
|
||||||
// message: t("jobs.errors.exporting", {
|
|
||||||
// error: JSON.stringify(jobUpdateResponse.error),
|
|
||||||
// }),
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
@@ -116,7 +111,8 @@ export function JobsCloseExportButton({ bodyshop, jobId, disabled }) {
|
|||||||
onClick={handleQbxml}
|
onClick={handleQbxml}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
type='dashed'>
|
type="dashed"
|
||||||
|
>
|
||||||
{t("jobs.actions.export")}
|
{t("jobs.actions.export")}
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user