mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add more fields to BuildDetail page (#7183)
* Add more fields to BuildDetail page * Prevent badges from flickering
This commit is contained in:
parent
6d620c713a
commit
08b1bdb564
@ -150,6 +150,27 @@ export default function BuildDetail() {
|
||||
label: t`Responsible`,
|
||||
badge: 'owner',
|
||||
hidden: !build.responsible
|
||||
},
|
||||
{
|
||||
type: 'text',
|
||||
name: 'creation_date',
|
||||
label: t`Created`,
|
||||
icon: 'calendar',
|
||||
hidden: !build.creation_date
|
||||
},
|
||||
{
|
||||
type: 'text',
|
||||
name: 'target_date',
|
||||
label: t`Target Date`,
|
||||
icon: 'calendar',
|
||||
hidden: !build.target_date
|
||||
},
|
||||
{
|
||||
type: 'text',
|
||||
name: 'completion_date',
|
||||
label: t`Completed`,
|
||||
icon: 'calendar',
|
||||
hidden: !build.completion_date
|
||||
}
|
||||
];
|
||||
|
||||
|
@ -303,7 +303,11 @@ export default function CompanyDetail(props: Readonly<CompanyDetailProps>) {
|
||||
|
||||
const badges: ReactNode[] = useMemo(() => {
|
||||
return [
|
||||
<DetailsBadge label={t`Inactive`} color="red" visible={!company.active} />
|
||||
<DetailsBadge
|
||||
label={t`Inactive`}
|
||||
color="red"
|
||||
visible={company.active == false}
|
||||
/>
|
||||
];
|
||||
}, [company]);
|
||||
|
||||
|
@ -303,7 +303,7 @@ export default function SupplierPartDetail() {
|
||||
<DetailsBadge
|
||||
label={t`Inactive`}
|
||||
color="red"
|
||||
visible={!supplierPart.active}
|
||||
visible={supplierPart.active == false}
|
||||
/>
|
||||
];
|
||||
}, [supplierPart]);
|
||||
|
Loading…
Reference in New Issue
Block a user