BOD-51 Added push vehicle updates to job.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { Button } from "antd";
|
||||
import { Button, notification } from "antd";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useMutation } from "@apollo/react-hooks";
|
||||
import { UPDATE_JOBS } from "../../graphql/jobs.queries";
|
||||
@@ -31,9 +31,17 @@ export default function OwnerDetailUpdateJobsComponent({
|
||||
ownr_zip: owner["ownr_zip"]
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
.then(response => {
|
||||
notification["success"]({ message: t("jobs.successes.updated") });
|
||||
})
|
||||
.catch(error => {
|
||||
notification["error"]({
|
||||
message: t("jobs.errors.updating", { error: JSON.stringify(error) })
|
||||
});
|
||||
});
|
||||
};
|
||||
console.log("disabled", disabled);
|
||||
|
||||
return (
|
||||
<Button disabled={disabled} onClick={handlecClick}>
|
||||
{t("owners.actions.update")}
|
||||
|
||||
Reference in New Issue
Block a user