This commit is contained in:
seb
2026-10-31 21:57:47 +01:00
parent df015da8fc
commit ee80646c1c

View File

@@ -955,24 +955,7 @@ export default class PrinterAgentSettingsPanel extends PureComponent {
</Typography> </Typography>
</Box> </Box>
{agentprinters.length === 0 ? ( {agentprinters.length === 0 ? null : (
<Box
sx={{
textAlign: 'center',
py: 5,
color: 'text.secondary',
bgcolor: 'action.hover',
borderRadius: 2,
border: '1px dashed',
borderColor: 'divider',
}}
>
<PrintOutlinedIcon sx={{ fontSize: 44, mb: 1, opacity: 0.5 }} />
<Typography variant="body2">
Keine Drucker erkannt. Schließen Sie Drucker per USB an einen gekoppelten Drucker-Agenten an.
</Typography>
</Box>
) : (
<Box sx={{ display: 'flex', flexDirection: 'column', gap: 1.5 }}> <Box sx={{ display: 'flex', flexDirection: 'column', gap: 1.5 }}>
{agentprinters.map((p, pIdx) => { {agentprinters.map((p, pIdx) => {
const pEnabled = p.enabled !== false; const pEnabled = p.enabled !== false;