UI improvements.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
This commit is contained in:
parent
7611d11655
commit
bfce33c3d2
@ -83,7 +83,7 @@ const FilamentSkus = () => {
|
|||||||
open={newFilamentSkuOpen}
|
open={newFilamentSkuOpen}
|
||||||
styles={{ content: { paddingBottom: '24px' } }}
|
styles={{ content: { paddingBottom: '24px' } }}
|
||||||
footer={null}
|
footer={null}
|
||||||
width={600}
|
width={700}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setNewFilamentSkuOpen(false)
|
setNewFilamentSkuOpen(false)
|
||||||
}}
|
}}
|
||||||
|
|||||||
@ -63,7 +63,7 @@ const FilamentInfo = () => {
|
|||||||
},
|
},
|
||||||
newFilamentSku: () => {
|
newFilamentSku: () => {
|
||||||
setNewFilamentSkuOpen(true)
|
setNewFilamentSkuOpen(true)
|
||||||
return false
|
return true
|
||||||
},
|
},
|
||||||
edit: () => {
|
edit: () => {
|
||||||
objectFormRef?.current?.startEditing?.()
|
objectFormRef?.current?.startEditing?.()
|
||||||
@ -232,7 +232,7 @@ const FilamentInfo = () => {
|
|||||||
open={newFilamentSkuOpen}
|
open={newFilamentSkuOpen}
|
||||||
styles={{ content: { paddingBottom: '24px' } }}
|
styles={{ content: { paddingBottom: '24px' } }}
|
||||||
footer={null}
|
footer={null}
|
||||||
width={600}
|
width={700}
|
||||||
onCancel={() => setNewFilamentSkuOpen(false)}
|
onCancel={() => setNewFilamentSkuOpen(false)}
|
||||||
destroyOnClose
|
destroyOnClose
|
||||||
>
|
>
|
||||||
|
|||||||
@ -20,8 +20,7 @@ const PartSkus = () => {
|
|||||||
|
|
||||||
const [viewMode, setViewMode] = useViewMode('partSkus')
|
const [viewMode, setViewMode] = useViewMode('partSkus')
|
||||||
|
|
||||||
const [columnVisibility, setColumnVisibility] =
|
const [columnVisibility, setColumnVisibility] = useColumnVisibility('partSku')
|
||||||
useColumnVisibility('partSku')
|
|
||||||
|
|
||||||
const actionItems = {
|
const actionItems = {
|
||||||
items: [
|
items: [
|
||||||
@ -83,7 +82,7 @@ const PartSkus = () => {
|
|||||||
open={newPartSkuOpen}
|
open={newPartSkuOpen}
|
||||||
styles={{ content: { paddingBottom: '24px' } }}
|
styles={{ content: { paddingBottom: '24px' } }}
|
||||||
footer={null}
|
footer={null}
|
||||||
width={600}
|
width={700}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setNewPartSkuOpen(false)
|
setNewPartSkuOpen(false)
|
||||||
}}
|
}}
|
||||||
|
|||||||
@ -51,7 +51,7 @@ const PartInfo = () => {
|
|||||||
},
|
},
|
||||||
newPartSku: () => {
|
newPartSku: () => {
|
||||||
setNewPartSkuOpen(true)
|
setNewPartSkuOpen(true)
|
||||||
return false
|
return true
|
||||||
},
|
},
|
||||||
edit: () => {
|
edit: () => {
|
||||||
objectFormRef?.current?.startEditing?.()
|
objectFormRef?.current?.startEditing?.()
|
||||||
@ -147,7 +147,9 @@ const PartInfo = () => {
|
|||||||
title='Part Information'
|
title='Part Information'
|
||||||
icon={<InfoCircleIcon />}
|
icon={<InfoCircleIcon />}
|
||||||
active={collapseState.info}
|
active={collapseState.info}
|
||||||
onToggle={(expanded) => updateCollapseState('info', expanded)}
|
onToggle={(expanded) =>
|
||||||
|
updateCollapseState('info', expanded)
|
||||||
|
}
|
||||||
collapseKey='info'
|
collapseKey='info'
|
||||||
>
|
>
|
||||||
<ObjectInfo
|
<ObjectInfo
|
||||||
@ -184,7 +186,7 @@ const PartInfo = () => {
|
|||||||
open={newPartSkuOpen}
|
open={newPartSkuOpen}
|
||||||
styles={{ content: { paddingBottom: '24px' } }}
|
styles={{ content: { paddingBottom: '24px' } }}
|
||||||
footer={null}
|
footer={null}
|
||||||
width={600}
|
width={700}
|
||||||
onCancel={() => setNewPartSkuOpen(false)}
|
onCancel={() => setNewPartSkuOpen(false)}
|
||||||
destroyOnClose
|
destroyOnClose
|
||||||
>
|
>
|
||||||
|
|||||||
@ -83,7 +83,7 @@ const ProductSkus = () => {
|
|||||||
open={newProductSkuOpen}
|
open={newProductSkuOpen}
|
||||||
styles={{ content: { paddingBottom: '24px' } }}
|
styles={{ content: { paddingBottom: '24px' } }}
|
||||||
footer={null}
|
footer={null}
|
||||||
width={600}
|
width={700}
|
||||||
onCancel={() => {
|
onCancel={() => {
|
||||||
setNewProductSkuOpen(false)
|
setNewProductSkuOpen(false)
|
||||||
}}
|
}}
|
||||||
|
|||||||
@ -52,7 +52,7 @@ const ProductInfo = () => {
|
|||||||
},
|
},
|
||||||
newProductSku: () => {
|
newProductSku: () => {
|
||||||
setNewProductSkuOpen(true)
|
setNewProductSkuOpen(true)
|
||||||
return false
|
return true
|
||||||
},
|
},
|
||||||
edit: () => {
|
edit: () => {
|
||||||
objectFormRef?.current?.startEditing?.()
|
objectFormRef?.current?.startEditing?.()
|
||||||
@ -190,7 +190,7 @@ const ProductInfo = () => {
|
|||||||
open={newProductSkuOpen}
|
open={newProductSkuOpen}
|
||||||
styles={{ content: { paddingBottom: '24px' } }}
|
styles={{ content: { paddingBottom: '24px' } }}
|
||||||
footer={null}
|
footer={null}
|
||||||
width={600}
|
width={700}
|
||||||
onCancel={() => setNewProductSkuOpen(false)}
|
onCancel={() => setNewProductSkuOpen(false)}
|
||||||
destroyOnClose
|
destroyOnClose
|
||||||
>
|
>
|
||||||
|
|||||||
@ -74,7 +74,6 @@ export const FilamentSku = {
|
|||||||
'_reference',
|
'_reference',
|
||||||
'name',
|
'name',
|
||||||
'filament',
|
'filament',
|
||||||
|
|
||||||
'barcode',
|
'barcode',
|
||||||
'color',
|
'color',
|
||||||
'overrideCost',
|
'overrideCost',
|
||||||
|
|||||||
@ -73,7 +73,6 @@ export const PartSku = {
|
|||||||
'_reference',
|
'_reference',
|
||||||
'name',
|
'name',
|
||||||
'part',
|
'part',
|
||||||
|
|
||||||
'barcode',
|
'barcode',
|
||||||
'overrideCost',
|
'overrideCost',
|
||||||
'cost',
|
'cost',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user