1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 02:42:47 +00:00

update comment panel

This commit is contained in:
Michael An
2019-05-29 12:02:07 +08:00
parent 51e90a88d2
commit 3b5d9e2e36
12 changed files with 384 additions and 46 deletions

View File

@@ -48,6 +48,7 @@ const propTypes = {
getDirentItemMenuList: PropTypes.func.isRequired,
onFileTagChanged: PropTypes.func,
enableDirPrivateShare: PropTypes.bool.isRequired,
showDirentDetail: PropTypes.func.isRequired,
};
class DirentListItem extends React.Component {
@@ -210,7 +211,7 @@ class DirentListItem extends React.Component {
this.onLockItem();
break;
case 'Comment':
this.onComnentItem();
this.props.showDirentDetail('comments');
break;
case 'History':
this.onHistory();
@@ -288,10 +289,6 @@ class DirentListItem extends React.Component {
});
}
onComnentItem = () => {
}
onHistory = () => {
let repoID = this.props.repoID;
let filePath = this.getDirentPath(this.props.dirent);