Tech Console improvements.
This commit is contained in:
@@ -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%" }}
|
||||
|
||||
Reference in New Issue
Block a user