WIP on several user stories. BOD-10 BOD-52
This commit is contained in:
@@ -6,7 +6,8 @@ import { UPDATE_JOBS } from "../../graphql/jobs.queries";
|
||||
|
||||
export default function OwnerDetailUpdateJobsComponent({
|
||||
owner,
|
||||
selectedJobs
|
||||
selectedJobs,
|
||||
disabled
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const [updateJobs] = useMutation(UPDATE_JOBS);
|
||||
@@ -32,6 +33,10 @@ export default function OwnerDetailUpdateJobsComponent({
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
return <Button onClick={handlecClick}>{t("owners.actions.update")}</Button>;
|
||||
console.log("disabled", disabled);
|
||||
return (
|
||||
<Button disabled={disabled} onClick={handlecClick}>
|
||||
{t("owners.actions.update")}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user