Tech Console improvements.

This commit is contained in:
Patrick Fic
2021-04-07 12:26:26 -07:00
parent ac4dc67b9f
commit d997d535e3
12 changed files with 120 additions and 119 deletions

View File

@@ -42,7 +42,7 @@ const colSpan = {
},
};
export function JobsDetailHeader({ job, bodyshop }) {
export function JobsDetailHeader({ job, bodyshop, disabled }) {
const { t } = useTranslation();
const jobInPostProduction = useMemo(() => {
@@ -84,7 +84,7 @@ export function JobsDetailHeader({ job, bodyshop }) {
</Card>
</Col>
<Col {...colSpan}>
<Link to={`/manage/owners/${job.owner.id}`}>
<Link to={disabled ? "#" : `/manage/owners/${job.owner.id}`}>
<Card
className="ant-card-grid-hoverable"
style={{ height: "100%" }}
@@ -109,7 +109,11 @@ export function JobsDetailHeader({ job, bodyshop }) {
</Link>
</Col>
<Col {...colSpan}>
<Link to={job.vehicle && `/manage/vehicles/${job.vehicle.id}`}>
<Link
to={
disabled ? "#" : job.vehicle && `/manage/vehicles/${job.vehicle.id}`
}
>
<Card
className="ant-card-grid-hoverable"
style={{ height: "100%" }}