mirror of
https://github.com/stashapp/stash.git
synced 2025-12-25 01:34:41 +01:00
Disable image lightbox for multi-selection (#2294)
* Disable image lightbox for multi-selection * Update ImageList.tsx Co-authored-by: kermieisinthehouse <kermie@isinthe.house>
This commit is contained in:
parent
cee36cb17c
commit
1523985cc2
1 changed files with 3 additions and 1 deletions
|
|
@ -138,7 +138,9 @@ const ImageListImages: React.FC<IImageListImages> = ({
|
|||
onSelectedChanged={(selected: boolean, shiftKey: boolean) =>
|
||||
onSelectChange(image.id, selected, shiftKey)
|
||||
}
|
||||
onPreview={(ev) => onPreview(index, ev)}
|
||||
onPreview={
|
||||
selectedIds.size < 1 (ev) => onPreview(index, ev) : undefined
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue