This commit is contained in:
seb
2026-10-09 21:29:45 +02:00
parent ac677dd5e3
commit 8a042ef9f2

View File

@@ -2,7 +2,6 @@ import { PureComponent } from 'react';
import IconButton from '@mui/material/IconButton'; import IconButton from '@mui/material/IconButton';
import ListItem from '@mui/material/ListItem'; import ListItem from '@mui/material/ListItem';
import DeleteOutlinedIcon from '@mui/icons-material/DeleteOutlined'; import DeleteOutlinedIcon from '@mui/icons-material/DeleteOutlined';
import CopyrightIcon from '@mui/icons-material/Copyright';
import ImageSearchIcon from '@mui/icons-material/ImageSearch'; import ImageSearchIcon from '@mui/icons-material/ImageSearch';
import SingleLineTextEdit from 'dashgui/SingleLineTextEdit'; import SingleLineTextEdit from 'dashgui/SingleLineTextEdit';
import { enqueueSnackbar } from 'notistack'; import { enqueueSnackbar } from 'notistack';
@@ -105,7 +104,16 @@ class ArtikelMarke extends PureComponent {
<BrandThumb <BrandThumb
brand={brand} brand={brand}
size={40} size={40}
fallback={<CopyrightIcon sx={{ color: 'text.secondary', fontSize: 20, flexShrink: 0 }} />} fallback={
<IconButton
aria-label={`Logo für „${name}" suchen`}
disabled={disabled}
onClick={this.handleSearchLogo}
sx={{ width: 40, height: 40, flexShrink: 0 }}
>
<ImageSearchIcon sx={{ fontSize: 24 }} />
</IconButton>
}
/> />
<SingleLineTextEdit <SingleLineTextEdit
size="small" size="small"
@@ -117,25 +125,15 @@ class ArtikelMarke extends PureComponent {
onKeyDown={this.handleKeyDown} onKeyDown={this.handleKeyDown}
sx={{ flex: 1 }} sx={{ flex: 1 }}
/> />
<span>
<IconButton
size="small"
aria-label={`Logo für „${name}" suchen`}
disabled={disabled}
onClick={this.handleSearchLogo}
>
<ImageSearchIcon fontSize="small" />
</IconButton>
</span>
<span> <span>
<IconButton <IconButton
edge="end" edge="end"
size="small"
aria-label={`„${name}" löschen`} aria-label={`„${name}" löschen`}
disabled={disabled} disabled={disabled}
onClick={this.handleDelete} onClick={this.handleDelete}
sx={{ width: 40, height: 40 }}
> >
<DeleteOutlinedIcon fontSize="small" /> <DeleteOutlinedIcon sx={{ fontSize: 24 }} />
</IconButton> </IconButton>
</span> </span>
</ListItem> </ListItem>