mirror of
https://github.com/stashapp/stash.git
synced 2026-03-06 21:25:14 +01:00
Disable links on wall items when selecting (#6649)
This commit is contained in:
parent
717f968a2c
commit
74a8f2e5d5
2 changed files with 17 additions and 2 deletions
|
|
@ -132,7 +132,13 @@ const GalleryWallCard: React.FC<IProps> = ({
|
|||
<footer className={CLASSNAME_FOOTER}>
|
||||
<Link
|
||||
to={`/galleries/${gallery.id}`}
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
onClick={(e) => {
|
||||
if (selecting) {
|
||||
e.preventDefault();
|
||||
handleCardClick(e);
|
||||
}
|
||||
e.stopPropagation();
|
||||
}}
|
||||
>
|
||||
{title && (
|
||||
<TruncatedText
|
||||
|
|
|
|||
|
|
@ -131,7 +131,16 @@ export const SceneWallItem: React.FC<
|
|||
/>
|
||||
<div className="lineargradient">
|
||||
<footer className="wall-item-footer">
|
||||
<Link to={props.photo.link} onClick={(e) => e.stopPropagation()}>
|
||||
<Link
|
||||
to={props.photo.link}
|
||||
onClick={(e) => {
|
||||
if (props.selecting) {
|
||||
e.preventDefault();
|
||||
handleClick(e);
|
||||
}
|
||||
e.stopPropagation();
|
||||
}}
|
||||
>
|
||||
{title && (
|
||||
<TruncatedText
|
||||
text={title}
|
||||
|
|
|
|||
Loading…
Reference in a new issue