mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 00:43:53 +00:00
[dir view, repo wiki mode] show images with popup (#2834)
* [dir view, repo wiki mode] show images with popup * [image pupup] modification
This commit is contained in:
@@ -113,7 +113,13 @@ class DirentListItem extends React.Component {
|
||||
|
||||
onItemClick = (e) => {
|
||||
e.preventDefault();
|
||||
this.props.onItemClick(this.props.dirent);
|
||||
|
||||
const dirent = this.props.dirent;
|
||||
if (Utils.imageCheck(dirent.name)) {
|
||||
this.props.showImagePopup(dirent);
|
||||
} else {
|
||||
this.props.onItemClick(dirent);
|
||||
}
|
||||
}
|
||||
|
||||
onItemDelete = (e) => {
|
||||
|
Reference in New Issue
Block a user