Add pendingSlicerUploads and queue properties to printer components
- Updated ControlPrinter, NewPrinter, and PrinterInfo components to include pendingSlicerUploads and queue properties for enhanced state management. - Modified Printer model to define pendingSlicerUploads structure, improving data handling for printer uploads.
This commit is contained in:
parent
80ecc8a175
commit
c201d26744
@ -341,6 +341,7 @@ const ControlPrinter = ({ slicerIntegration = false }) => {
|
|||||||
createdAt: false,
|
createdAt: false,
|
||||||
updatedAt: false,
|
updatedAt: false,
|
||||||
state: !slicerIntegration,
|
state: !slicerIntegration,
|
||||||
|
pendingSlicerUploads: false,
|
||||||
name: !slicerIntegration
|
name: !slicerIntegration
|
||||||
}}
|
}}
|
||||||
objectPropertyProps={{
|
objectPropertyProps={{
|
||||||
|
|||||||
@ -53,7 +53,8 @@ const NewPrinter = ({ onOk, defaultValues }) => {
|
|||||||
'currentJob._id': false,
|
'currentJob._id': false,
|
||||||
currentSubJob: false,
|
currentSubJob: false,
|
||||||
'currentSubJob._id': false,
|
'currentSubJob._id': false,
|
||||||
alerts: false
|
alerts: false,
|
||||||
|
queue: false
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
@ -80,7 +81,10 @@ const NewPrinter = ({ onOk, defaultValues }) => {
|
|||||||
'currentJob._id': false,
|
'currentJob._id': false,
|
||||||
currentSubJob: false,
|
currentSubJob: false,
|
||||||
'currentSubJob._id': false,
|
'currentSubJob._id': false,
|
||||||
alerts: false
|
alerts: false,
|
||||||
|
pendingSlicerUploads: false,
|
||||||
|
online: false,
|
||||||
|
queue: false
|
||||||
}}
|
}}
|
||||||
isEditing={false}
|
isEditing={false}
|
||||||
objectData={objectData}
|
objectData={objectData}
|
||||||
|
|||||||
@ -171,7 +171,8 @@ const PrinterInfo = () => {
|
|||||||
'currentJob._id': false,
|
'currentJob._id': false,
|
||||||
currentSubJob: false,
|
currentSubJob: false,
|
||||||
'currentSubJob._id': false,
|
'currentSubJob._id': false,
|
||||||
alerts: false
|
alerts: false,
|
||||||
|
pendingSlicerUploads: false
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@ -406,6 +406,36 @@ export const Printer = {
|
|||||||
required: false,
|
required: false,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
columnWidth: 200
|
columnWidth: 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'pendingSlicerUploads',
|
||||||
|
type: 'objectChildren',
|
||||||
|
label: 'Pending Slicer Uploads',
|
||||||
|
properties: [
|
||||||
|
{
|
||||||
|
name: 'file',
|
||||||
|
label: 'File',
|
||||||
|
type: 'object',
|
||||||
|
objectType: 'file',
|
||||||
|
required: true,
|
||||||
|
showHyperlink: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'shouldPrint',
|
||||||
|
label: 'Should Print',
|
||||||
|
type: 'bool',
|
||||||
|
required: true,
|
||||||
|
columnWidth: 125
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'job',
|
||||||
|
label: 'Job',
|
||||||
|
type: 'object',
|
||||||
|
objectType: 'job',
|
||||||
|
required: false,
|
||||||
|
showHyperlink: true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
stats: [
|
stats: [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user