-
-
-
- {printerData?.alerts?.some(
- (alert) => alert.type === 'klippyError'
- ) && }
- {printerData?.alerts?.some(
- (alert) => alert.type === 'klippyStartup'
- ) && }
-
- updateCollapseState('job', keys.length > 0)}
- expandIcon={({ isActive }) => (
-
- )}
- style={{ padding: 0 }}
- className='no-h-padding-collapse no-t-padding-collapse'
- >
-
-
- Current Job
-
-
- }
- key='1'
- >
- }
- spinning={fetchLoading}
- >
-
-
- {printerData?.name ? (
- {printerData.name}
- ) : (
- n/a
- )}
-
-
-
- {printerData?._id ? (
-
- ) : (
- n/a
- )}
-
-
-
- {printerData?.currentJob?.gcodeFile?.name ? (
-
-
-
- {printerData.currentJob?.gcodeFile?.name}
-
-
- ) : (
- n/a
- )}
-
-
- {printerData?.currentJob?.gcodeFile ? (
-
- ) : (
- n/a
- )}
-
-
-
- {printerData?.currentJob?.id ? (
-
- ) : (
- n/a
- )}
-
-
-
- {printerData?.currentSubJob?.id ? (
-
- ) : (
- n/a
- )}
-
-
- {printerData?.state?.type === 'printing' && (
- <>
-
-
-
-
- {printerData?.currentSubJob?.startedAt ? (
-
- ) : (
- n/a
- )}
-
- >
- )}
-
-
- {printerData?.currentJob?.gcodeFile?.gcodeFileInfo
- ?.printSettingsId ? (
-
- {printerData.currentJob.gcodeFile.gcodeFileInfo.printSettingsId.replaceAll(
- '"',
- ''
- )}
-
- ) : (
- n/a
- )}
-
-
-
- {printerData?.currentJob?.gcodeFile?.gcodeFileInfo
- ?.estimatedPrintingTimeNormalMode ? (
-
- {
- printerData.currentJob.gcodeFile.gcodeFileInfo
- .estimatedPrintingTimeNormalMode
- }
-
- ) : (
- n/a
- )}
-
-
-
-
-
-
- updateCollapseState('filament', keys.length > 0)
- }
- expandIcon={({ isActive }) => (
-
- )}
- style={{ padding: 0 }}
- className='no-h-padding-collapse'
- >
-
-
- Loaded Filament Stock
-
-
- }
- key='1'
- >
-
}
- spinning={fetchLoading}
- >
-
-
- {printerData?.currentFilamentStock ? (
-
- ) : (
- n/a
- )}
-
-
- {printerData?.currentFilamentStock?._id ? (
-
- ) : (
- n/a
- )}
-
-
- {printerData?.currentFilamentStock?.filament?.name ? (
-
-
-
-
- ) : (
- n/a
- )}
-
-
- {printerData?.currentFilamentStock?.filament ? (
-
- ) : (
- n/a
- )}
-
-
- {printerData?.currentFilamentStock?.currentNetWeight ? (
-
-
-
- {printerData.currentFilamentStock.currentNetWeight.toFixed(
- 2
- ) + 'g'}
-
-
- {printerData.currentFilamentStock.currentGrossWeight.toFixed(
- 2
- ) + 'g'}
-
-
-
- ) : (
- n/a
- )}
-
-
-
-
-
-
- updateCollapseState('jobs', keys.length > 0)
- }
- expandIcon={({ isActive }) => (
-
- )}
- style={{ padding: 0 }}
- className='no-h-padding-collapse'
- >
-
-
- Printer Jobs
-
-
- }
- key='1'
- >
-
-
-
-
-
- {componentVisibility.temperature && (
- }
- spinning={fetchLoading}
- >
-
-
-
-
- )}
-
- {componentVisibility.position && (
- }
- spinning={fetchLoading}
- >
-
-
-
-
- )}
-
- {componentVisibility.movement && (
- }
- spinning={fetchLoading}
- >
-
-
-
-
- )}
-
- {componentVisibility.misc && (
- }
- spinning={fetchLoading}
- >
-
-
-
-
- )}
-
-
-
+