Changes to recent items BOD-178

This commit is contained in:
Patrick Fic
2020-06-26 09:29:16 -07:00
parent 82ee83c43b
commit 4516491c8c
4 changed files with 18 additions and 9 deletions

View File

@@ -14,7 +14,8 @@ export function JobsCloseAutoAllocate({
setLabmatAllocations,
partsAllocations,
setPartsAllocations,
invoiced
disabled,
}) {
const { t } = useTranslation();
const handleAllocate = () => {
@@ -63,6 +64,10 @@ export function JobsCloseAutoAllocate({
});
};
return <Button onClick={handleAllocate} disabled={invoiced}>{t("jobs.actions.autoallocate")}</Button>;
return (
<Button onClick={handleAllocate} disabled={disabled}>
{t("jobs.actions.autoallocate")}
</Button>
);
}
export default connect(mapStateToProps, null)(JobsCloseAutoAllocate);