diff --git a/src/frontend/src/components/images/DetailsImage.tsx b/src/frontend/src/components/images/DetailsImage.tsx index 4eda7d0809..929af89c03 100644 --- a/src/frontend/src/components/images/DetailsImage.tsx +++ b/src/frontend/src/components/images/DetailsImage.tsx @@ -337,15 +337,18 @@ export function DetailsImage(props: DetailImageProps) { src={img} height={IMAGE_DIMENSION} width={IMAGE_DIMENSION} - onClick={() => { - modals.open({ - children: , - withCloseButton: false - }); - }} /> {permissions.hasChangeRole(props.appRole) && hovered && ( - + { + modals.open({ + children: , + withCloseButton: false + }); + }} + >