Changes to recent items BOD-178
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user