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