Skip to content

Commit 3c39d98

Browse files
fix: hide delete overlay for default app images
1 parent 71e38b9 commit 3c39d98

1 file changed

Lines changed: 20 additions & 10 deletions

File tree

ui/src/application/Applications.tsx

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -197,20 +197,30 @@ const Row = ({
197197
fEdit,
198198
}: IRowProps) => {
199199
const {classes} = useStyles();
200+
const isCustomImage = image.startsWith('image/');
200201
return (
201202
<TableRow>
202203
<TableCell padding="normal">
203204
<div style={{display: 'flex'}}>
204-
<Tooltip title="Delete image" placement="top" arrow>
205-
<ButtonBase className={classes.imageContainer} onClick={fDeleteImage}>
206-
<img
207-
src={config.get('url') + image}
208-
alt="app logo"
209-
width="40"
210-
height="40"
211-
/>
212-
</ButtonBase>
213-
</Tooltip>
205+
{isCustomImage ? (
206+
<Tooltip title="Delete image" placement="top" arrow>
207+
<ButtonBase className={classes.imageContainer} onClick={fDeleteImage}>
208+
<img
209+
src={config.get('url') + image}
210+
alt="app logo"
211+
width="40"
212+
height="40"
213+
/>
214+
</ButtonBase>
215+
</Tooltip>
216+
) : (
217+
<img
218+
src={config.get('url') + image}
219+
alt="app logo"
220+
width="40"
221+
height="40"
222+
/>
223+
)}
214224
<IconButton onClick={fUpload} style={{height: 40}}>
215225
<CloudUpload />
216226
</IconButton>

0 commit comments

Comments
 (0)