1
0
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:
llj
2019-01-16 17:45:46 +08:00
committed by Daniel Pan
parent 09aee97e0c
commit ca4dee899b
10 changed files with 154 additions and 6 deletions

View File

@@ -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) => {