IO-233 Export Job Refactor
This commit is contained in:
@@ -7,6 +7,7 @@ import { useTranslation } from "react-i18next";
|
||||
import { useLazyQuery } from "@apollo/client";
|
||||
import { SEARCH_DMS_VEHICLES } from "../../graphql/dms.queries";
|
||||
import AlertComponent from "../alert/alert.component";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
//currentUser: selectCurrentUser
|
||||
bodyshop: selectBodyshop,
|
||||
|
||||
@@ -277,6 +277,15 @@ export function DmsPostForm({ bodyshop, socket, job }) {
|
||||
<Button disabled={discrep.getAmount() !== 0} htmlType="submit">
|
||||
{t("jobs.actions.dms.post")}
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() => {
|
||||
socket.emit(`${determineDmsType(bodyshop)}-export-job`, {
|
||||
jobid: job.id,
|
||||
});
|
||||
}}
|
||||
>
|
||||
Bypass
|
||||
</Button>
|
||||
</Space>
|
||||
);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user