u
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user