This commit is contained in:
seb
2026-10-19 01:02:08 +02:00
parent 9b40d1db87
commit eb15bcb83b
3 changed files with 274 additions and 147 deletions

View File

@@ -4,7 +4,6 @@ import IconButton from '@mui/material/IconButton';
import ListItem from '@mui/material/ListItem';
import Switch from '@mui/material/Switch';
import FormControlLabel from '@mui/material/FormControlLabel';
import Tooltip from '@mui/material/Tooltip';
import Typography from '@mui/material/Typography';
import DeleteOutlinedIcon from '@mui/icons-material/DeleteOutlined';
import DragIndicatorIcon from '@mui/icons-material/DragIndicator';
@@ -158,43 +157,39 @@ class CarrierItem extends PureComponent {
/>
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1.5, flexShrink: 0 }}>
<Tooltip title="Paketverfolgung / Tracking für Sendungen aktivieren">
<FormControlLabel
control={
<Switch
size="small"
checked={hasPackages}
disabled={disabled || !item}
onChange={this.handleToggleHasPackages}
/>
}
label={
<Typography variant="caption" sx={{ userSelect: 'none', fontWeight: 500 }}>
Pakete
</Typography>
}
sx={{ m: 0, gap: 0.5 }}
/>
</Tooltip>
<FormControlLabel
control={
<Switch
size="small"
checked={hasPackages}
disabled={disabled || !item}
onChange={this.handleToggleHasPackages}
/>
}
label={
<Typography variant="caption" sx={{ userSelect: 'none', fontWeight: 500 }}>
Pakete
</Typography>
}
sx={{ m: 0, gap: 0.5 }}
/>
<Tooltip title="Für Retouren / Rücksendungen verwenden">
<FormControlLabel
control={
<Switch
size="small"
checked={isReverse}
disabled={disabled || !item}
onChange={this.handleToggleIsReverse}
/>
}
label={
<Typography variant="caption" sx={{ userSelect: 'none', fontWeight: 500 }}>
Retoure
</Typography>
}
sx={{ m: 0, gap: 0.5 }}
/>
</Tooltip>
<FormControlLabel
control={
<Switch
size="small"
checked={isReverse}
disabled={disabled || !item}
onChange={this.handleToggleIsReverse}
/>
}
label={
<Typography variant="caption" sx={{ userSelect: 'none', fontWeight: 500 }}>
Retoure
</Typography>
}
sx={{ m: 0, gap: 0.5 }}
/>
</Box>
<IconButton