This commit is contained in:
seb
2026-10-12 18:10:26 +02:00
parent 15dce3c1cf
commit a0a40b243a
6 changed files with 1065 additions and 698 deletions

View File

@@ -85,8 +85,8 @@ class ArtikelMarke extends PureComponent {
this.setState({ logoOpen: false });
};
handleThumbClick = () => {
if (this.props.disabled || !this.hasLogo()) return;
handleOpenLogo = () => {
if (this.props.disabled) return;
this.setState({ previewOpen: true });
};
@@ -124,7 +124,7 @@ class ArtikelMarke extends PureComponent {
{hasLogo ? (
<Box
component="span"
onClick={this.handleThumbClick}
onClick={this.handleOpenLogo}
sx={{
display: 'inline-flex',
flexShrink: 0,
@@ -137,9 +137,9 @@ class ArtikelMarke extends PureComponent {
</Box>
) : (
<IconButton
aria-label={`Logo für „${name}" suchen`}
aria-label={`Logo für „${name}" bearbeiten`}
disabled={disabled}
onClick={this.handleSearchLogo}
onClick={this.handleOpenLogo}
sx={{ width: 40, height: 40, flexShrink: 0 }}
>
<ImageSearchIcon sx={{ fontSize: 24 }} />