From 6fedb9739f21fad26283397610c75c4d419baa1f Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Fri, 5 Sep 2025 23:13:19 +0100 Subject: [PATCH] Added DocumentPrintButton to PrinterInfo component and updated objectData handling. --- .../Production/Printers/PrinterInfo.jsx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/components/Dashboard/Production/Printers/PrinterInfo.jsx b/src/components/Dashboard/Production/Printers/PrinterInfo.jsx index 3d4317b..e5b5272 100644 --- a/src/components/Dashboard/Production/Printers/PrinterInfo.jsx +++ b/src/components/Dashboard/Production/Printers/PrinterInfo.jsx @@ -19,6 +19,7 @@ import ActionHandler from '../../common/ActionHandler.jsx' import ObjectActions from '../../common/ObjectActions.jsx' import ObjectTable from '../../common/ObjectTable.jsx' import InfoCollapsePlaceholder from '../../common/InfoCollapsePlaceholder.jsx' +import DocumentPrintButton from '../../common/DocumentPrintButton.jsx' const log = loglevel.getLogger('PrinterInfo') log.setLevel(config.logLevel) @@ -40,7 +41,8 @@ const PrinterInfo = () => { editLoading: false, formValid: false, locked: false, - loading: false + loading: false, + objectData: {} }) const actions = { @@ -80,6 +82,7 @@ const PrinterInfo = () => { type='printer' id={printerId} disabled={objectFormState.loading} + objectData={objectFormState.objectData} /> { visibleState={collapseState} updateVisibleState={updateCollapseState} /> + @@ -146,6 +154,15 @@ const PrinterInfo = () => { isEditing={isEditing} type='printer' objectData={objectData} + visibleProperties={{ + currentFilamentStock: false, + 'currentFilamentStock._id': false, + currentJob: false, + 'currentJob._id': false, + currentSubJob: false, + 'currentSubJob._id': false, + alerts: false + }} /> ) }}